[NTLUG:Discuss] Hosts using DHCP

kbrannen@gte.net kbrannen at gte.net
Wed Feb 26 15:21:35 CST 2003


Wayne Dahl wrote:
> 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?

I always thought DHCP took care of "hosts" issues.  As for hosts.allow, it 
will take a subnet value, e.g. "192.168.1"; so just enter your DHCP range.

HTH,
Kevin




More information about the Discuss mailing list