[H-GEN] Nicest way to maintain mac-IP-DNS mappings on local network?
Dan Callaghan
djc at djc.id.au
Tue Oct 9 19:30:42 EDT 2012
Excerpts from Russell Stuart's message of 2012-10-10 09:14:09 +1000:
> [ Humbug *General* list - semi-serious discussions about Humbug and ]
> [ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
>
> On Tue, 2012-10-09 at 23:55 +0100, Benjamin Fowler wrote:
> > I've used the DHCP server running on the modem to dish out static IPs
> > to all my devices based on MAC address, which is a bit of a nuisance
> > to maintain -- I'm wondering if it would be easier to somehow set up a
> > bind9 and dhcp server on the Debian server to manage the MAC
> > address-to-IP-to-DNS for my local network in the one location.
> >
> > What's the best practice for doing that for a home network these days?
>
> I assume you are asking how to keep your DNS server and DHCP server in
> sync, so if your DHCP server hands out the address 192.168.10.10 to a
> computer that called itself "freds", fred.some.domain would resolve to
> 192.168.10.10 and a reverse lookup of 192.168.10.10 would return
> fred.some.domain?
>
> If so, ISC DHCP and ISC DNS (bind) support it out of the box. Look up
> ddns-update-style in "man dhcpd.conf". Make sure you also have
> appropiate "allow-update" clauses in your named.conf for the
> "some.domain" and "10.168.192.in-addr.arpa".
For a lighter weight solution, consider using dnsmasq for your network's
DNS and DHCP. It can read mappings from the standard places (/etc/ethers
for MAC address -> hostname, /etc/hosts for IP address -> hostname) or
you can just enumerate them all directly in dnsmasq's config. Plus it
has a bunch of other useful features for small networks and I find it
very simple to configure.
--
Dan Callaghan <djc at djc.id.au>
More information about the General
mailing list