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

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kevin
Date:  
To: PLUG-DISCUSS
Subject: Re: Changes to /etc/resolv.conf don't stick

On 1/23/06 11:23 AM, "Siri Amrit Kaur" <> 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


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss