[Tfug] Spooty DHCP! I want static DNS settings!

Choprboy choprboy at dakotacom.net
Fri Jun 4 14:48:38 MST 2004


On Friday 04 June 2004 14:14, Sam Hart wrote:
> Would you believe I dont have that file?
> 
> I have a /etc/dhcpc directory which has what looks like a default 
> resolv.conf file in it. But when I change that it just ignores it.
> 

I don;t have it installed by default on my system either... but I believe 
Ammon is right, you should add a /etc/dhclient.conf file.

I believe the option you want included in /etc/dhclient.conf would be 
something like:

supersede domain-name-servers <ip> [,<ip>...]

That should overide any DNS servers given to you in the DHCP reply and use the 
IPs you specify instead (it probably still overwrites the file... but with 
your defined IPs instead). I would still like to figure out how to make 
dhclient restore previous DNS servers in /etc/resolv.conf when a DHCP lease 
is expired/closed... but I haven;t figured that out yet.

Adrian


More information about the tfug mailing list