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

Andrew Huntwork ash at huntwork.net
Fri Jun 4 15:06:39 MST 2004


i seem to remember that dhcpc is a totally different program from 
dhclient.  I think dhcpc may have an option to run a script at some 
point.  you might want to have it run a script that generates a good 
resolv.conf for you.  You should check the dhcpc man page to see if i 
know what i'm talking about.

alternatively, you might want to get dhclient.  i seem to remember some 
problems with cox dhcp servers going away a couple years ago when i 
switched from dhcpc to dhclient, so maybe dhclient is just better.

Choprboy wrote:

> 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
> _______________________________________________
> tfug mailing list
> tfug at tfug.org
> https://www.tfug.org/mailman/listinfo/tfug


More information about the tfug mailing list