[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Preserving changes to resolv.conf?



On Mon, Feb 23, 2004 at 04:27:59PM +1030, David Purton wrote:
| On Sun, Feb 22, 2004 at 11:17:28PM -0600, Joel Konkle-Parker wrote:
| > I made some changes to /etc/resolv.conf, but after a reboot, it's back 
| > to its old self. Specifically, I changed the nameserver lines to 
| > something other than what DHCP (I presume) set them to.
| > 
| > How do I tell the system that I set my own nameserver lines, and don't 
| > want them overwritten?

| With dhclient this was my method

| I just edited /etc/dhclient-script and added two lines to the
| make_resolve_conf() function:

| If someone can give the official way to do this via dhclient.conf then
| I'd be happy to know - but none of the options I tried seemd to work
| :(

In dhclient.conf, put the line

    supersede  domain-name-servers 127.0.0.1 ;

(there's a sample line like that commented out in the file)

-D

-- 
"He is no fool who gives up what he cannot keep to gain what he cannot lose."
    --Jim Elliot
 
www: http://dman13.dyndns.org/~dman/            jabber: dman@dman13.dyndns.org

Attachment: signature.asc
Description: Digital signature


Reply to: