From owner-freebsd-net@FreeBSD.ORG Sun Oct 12 09:58:06 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BC2316A4B3 for ; Sun, 12 Oct 2003 09:58:06 -0700 (PDT) Received: from smithers.nildram.co.uk (smithers.nildram.co.uk [195.112.4.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D30943F85 for ; Sun, 12 Oct 2003 09:58:05 -0700 (PDT) (envelope-from nullentropy@lineone.net) Received: from lineone.net (orbital.gotadsl.co.uk [81.6.215.230]) by smithers.nildram.co.uk (Postfix) with ESMTP id A20B0254122; Sun, 12 Oct 2003 17:58:00 +0100 (BST) Message-ID: <3F898818.8090504@lineone.net> Date: Sun, 12 Oct 2003 17:58:00 +0100 From: Robert Downes User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030925 X-Accept-Language: ar, es, fr, en, en-us MIME-Version: 1.0 To: bv@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> In-Reply-To: <20031012154753.GD73263@wjv.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: named sandbox trouble X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Oct 2003 16:58:06 -0000 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