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

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


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

>> 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
>> 
> 
> Is that the complete command? Do you tell it what domain-name-servers you want
> it to use? 
> 
> And it may be a moot point, because I don't have a file /etc/dhclient.conf
> 
> Siri Amrit

Maybe /etc/dhcp3/dhclient.conf?

If you don't see it there search for it:
 find /etc -name dhclient.conf -print

Once you find it, just do this:
 echo "supersede domain-name-servers 192.168.0.1;" >>
/etc/dhcp3/dhclient.conf

That should be all one line.  Don't forget the semicolon and the
double-quotes, and of course substitute the IP address you need.

Then, check your work like this, you should see your supersede statement on
the last line:
 tail /etc/dhcp3/dhclient.conf

If that goes according to plan, just restart dhclient:
 killall dhclient && dhclient
  -or-
 killall dhclient3 && dhclient


Let me know how that goes.

...Kevin




More information about the PLUG-discuss mailing list