Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Oct 2003 17:58:00 +0100
From:      Robert Downes <nullentropy@lineone.net>
To:        bv@wjv.com
Cc:        freebsd-net@freebsd.org
Subject:   Re: named sandbox trouble
Message-ID:  <3F898818.8090504@lineone.net>
In-Reply-To: <20031012154753.GD73263@wjv.com>
References:  <3F862EA7.7000402@lineone.net> <20031010162031.GO56167@numachi.com> <3F873F44.4000205@bobulous.net> <20031012060500.GA274@numachi.com> <3F896979.6000102@lineone.net> <20031012154753.GD73263@wjv.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Bill Vermillion wrote:

>On Sun, Oct 12, 2003 at 15:47 , while denying his reply is 
>spam, Robert Downes prattled on endlessly saying:
>  
>
>>I've realised that my /etc/resolv.conf is being overwritten on every 
>>reboot. I assumed this was because of DHCP, but disabling DHCP meant 
>>that my network connection was disabled.
>>    
>>
>
>I don't know off hand what is causing that you can keep that from
>happening by running as root    chflags schg /etc/resolv.conf
>
>That will buy you time until you figure things out.
>  
>
I worked it out, by chance.

A look into the dhcp man pages, (dhcpclient.conf mainly, I think) 
revealed that it's possible to create a configuration entry that adds 
your desired nameserver values before the ones that the DHCP server returns.

So you just need to add something like this to dhcpclient.conf (I think 
that's the file - read the man pages first)

interface "rl0" {
    prepend domain-name-servers 127.0.0.1;
}

As I say, though, I'm not sure if that's the right file, so do a bit of 
man-page browsing to check.

Once that's in place, "nameserver 127.0.0.1" appears at the top of 
/etc/resolv.conf every time. So at least one thing is going the right way.
--
Bob



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F898818.8090504>