Subject: Re: No nameservers configured when using DHCP/dhclient
To: None <netbsd-users@netbsd.org>
From: Lee W <lee@unassemble.co.uk>
List: netbsd-users
Date: 05/18/2003 18:04:41
Steven M. Bellovin wrote:

  > You could always run your own nameserver -- there's a lot to be said
> for that.
> 
> But make sure you have a line like this in your dhclient.conf file:
> 
> 	request subnet-mask, broadcast-address, routers, domain-name, domain-name-servers;
> 
> 
> You could even say
> 
> 	require domain-name-servers;
> 
> to make it abort if it doesn't get any.
> 

In a larger environment setting up my own DNS server would be a good 
suggestion unfortunately I am only setting this up a home.

I had another look at the dhclient.conf man page and it says that no 
options "should" be required, a blank file will do.

Also the dhclient.leases file contains all the correct information (i.e. 
name server ip's) it just appears as though the script is ignoring them 
or forgetting to configure resolv.conf.