Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jul 1998 13:42:53 -0700 (PDT)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        Dan Langille <junkmale@xtra.co.nz>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: changes to file are lost
Message-ID:  <Pine.BSF.4.00.9807311341220.14321-100000@resnet.uoregon.edu>
In-Reply-To: <199807310910.VAA02534@cyclops.xtra.co.nz>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.00.9807311341220.14321-100000>