Skip site navigation (1)Skip section navigation (2)
Date:      28 Apr 2001 16:53:01 -0400
From:      Lowell Gilbert <lowell@world.std.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: DHCP and resolv.conf
Message-ID:  <44wv84zqz6.fsf@lowellg.ne.mediaone.net>
In-Reply-To: akbeech@anchoragerescue.org's message of "28 Apr 2001 22:40:32 %2B0200"
References:  <3AEB1F80.9010709@earthlink.net> <01042812401100.22027@galaxy.anchoragerescue.org>

next in thread | previous in thread | raw e-mail | index | archive | help
akbeech@anchoragerescue.org (Beech Rintoul) writes:

> On Saturday 28 April 2001 11:52, Simon Maycock wrote:

> > When I use DHCP on the interface I connect to Sprint broadband it sets
> > up a new resolv.conf each time.  How can I disable this feature, while
> > still getting my IP dynamically assigned?  I want the host to be able to
> > use my  internal DNS!

> Add the following to /etc/dhclient.conf:
> 
> interface "ep0"	{
> 	supersede domain-name "your.domain.com";
> 	supersede domain-name-servers 123.456.789;
> }
> 
> Change ep0 to whatever your outside interface is. Take a look at man 
> dhclient.conf for more options.

One of those other options is "prepend", which I would recommend here
rather than "supersede".  Most of the time, it will make no
difference, but if the name server on that host goes down, users on
the machine will still be able to do DNS lookups.

Good luck.

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?44wv84zqz6.fsf>