Changes to /etc/resolv.conf don't stick

Kevin plug-discuss at firstpacket.com
Mon Jan 23 12:10:58 MST 2006


On 1/23/06 10:50 AM, "Siri Amrit Kaur" <tigerflag at tigerflag.com> wrote:

> OK, now that I can post to the list again I wanted to ask if anyone could tell
> me how to make permanent changes to my /etc/resolv.conf file. I had to change
> the nameservers so that I can get system updates and access webmail. But the
> changes don't stick and it keeps reverting to the old nameservers. I'm not
> sure when the reversion happens or what's causing it- it's not from rebooting
> because I haven't rebooted.
> 
> FWIW, I'm running PCLinuxOS, which probably has a similar file structure to
> Mandrake which it was originally based upon.

>From a google search, it looks like PCLinuxOS probably uses the 'dhclient'
dhcp client.  If so, read `man dhclient.conf` specifically the supersede
option.

Something like this works for me in /etc/dhclient.conf:

supersede domain-name-servers 192.168.0.1;

...Kevin



More information about the PLUG-discuss mailing list