[NTLUG:Discuss] Hosts using DHCP

Wayne Dahl w.dahl4 at verizon.net
Wed Feb 26 14:32:09 CST 2003


I've found at least part of the Samba issue.  There were no entries in
my /etc/hosts or /etc/hosts.allow files.  All the documentation I've
found so far about putting entries in there deal with static IP's
because you assign an IP to a specific host in the file.  What I have
not found is how this works when the hosts get their IP's via DHCP from
the router.  Since the IP's are subject to change every time the
machines are rebooted, the entries in the file could be invalid.  I have
not found any documentation anywhere so far explaining how to get around
this, short of assigning static IP's.  So, the question is, how does the
hosts file work on a network where DHCP is running?

Wayne






More information about the Discuss mailing list