[nSLUG] DHCP and name resolution question

Stephen Gregory nslug at kernelpanic.ca
Thu May 5 14:05:52 ADT 2005

On Thu, May 05, 2005 at 04:14:26AM -0300, Mike Spencer wrote:
>     BUT bogus and alien have no way of knowing what IP address moby
>     has.  
> Is there some general way to deal with this?

The general way to deal with this is to install a DNS server and
enable dynamic updates. If you are using bind9 there are a few howtos
on the Internet. It is easy to setup.

Configure moby to update its DNS entry when it recieves a new
address. See the manpages for you dhcp client program for information
on running a script when a new ip address is issued. Most distros will
have a script you can edit. Debian has a directory where you can put
scripts which will be executed automagically. This too is easy to setup.

Failing that configure the dhcp server to always hand out the same
ip. Or use the work around by setting the leases to a long
time. Useing a script to create host entries with nmblookup is nice,
although it dosen't scale that well. 



More information about the nSLUG mailing list