I need to automatically add mac-addresses to some file and manually add the hostnames assigned to them. A script will then scan my home LAN for those mac-addresses and populate the /etc/hosts file, updating whatever cache. Most importantly I do not want a centralized server that works as DNS server 24/7 and consumes a lot of energy in addition to the energy consumed already by the modem offering its own LAN-dhcp services. i.e. I need a decentralized DNS service.
Has anyone ever heard of such a script?
But I guess that's too much to ask, is some way to automatically read the /etc/hostname file of all computers at the moment they enter my LAN and update name-resolution directly without the need for a /etc/hosts file. Anyone know if that would be possible without altering the dhcp server?