From owner-freebsd-questions Fri Jul 31 13:43:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA22450 for freebsd-questions-outgoing; Fri, 31 Jul 1998 13:43:08 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA22445 for ; Fri, 31 Jul 1998 13:43:04 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.5/8.8.8) with SMTP id NAA28908; Fri, 31 Jul 1998 13:42:54 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Fri, 31 Jul 1998 13:42:53 -0700 (PDT) From: Doug White To: Dan Langille cc: freebsd-questions@FreeBSD.ORG Subject: Re: changes to file are lost In-Reply-To: <199807310910.VAA02534@cyclops.xtra.co.nz> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 31 Jul 1998, Dan Langille wrote: > On 30 Jul 98, at 14:54, Doug White wrote: > > > Yup -- the DHCP client rewrites /etc/resolv.conf with the information it > > receives from the DHCP server. > > > Bummer. OK. What should I be looking at in order to automagically amend > the contents? In brief here's what it contains followed what I want it to > contain: > > search myisp.com > nameserver 11.22.33.44 > nameserver 11.22.33.45 > > ----- > > domain mydomain.com > nameserver 10.0.0.1 # my min-dns server > nameserver 11.22.33.44 > nameserver 11.22.33.45 > > > Any suggestions? Yes -- you can add a `prepend' statement to add that in, I think: prepend { domain-name "mydomain.com"; domain-name-servers 10.0.1.4; } Add that to /etc/dhclient.conf and it should fix you up. See the dhclient.conf manpage for details. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message