Date: Fri, 16 Nov 2001 15:37:23 +0000 From: setantae <setantae@submonkey.net> To: Todd Hansen <tshansen@nlanr.net> Cc: questions@freebsd.org Subject: Re: resolv.conf Message-ID: <20011116153723.GA53802@rhadamanth> In-Reply-To: <20011116124701.K684@k7.mavetju.org> References: <Pine.BSF.4.21.0111151740450.65004-100000@mave.nlanr.net> <20011116124701.K684@k7.mavetju.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 16, 2001 at 12:47:01PM +1100, Edwin Groothuis wrote:
> On Thu, Nov 15, 2001 at 05:43:49PM -0800, Todd Hansen wrote:
> > is there a way to specify the search domains for my DNS resolving. I use
> > DHCP and as such each time I boot my laptop in a new location the
> > resolv.conf file gets overwritten. Is there another place I can specify
> > the search domains so that I don't have to use the full domain name?
>
> You can prevent your resolv.conf to be (completly/partly) overwritten
> if you use dhclient.conf correctly.
Here's what I use in my /etc/dhclient.conf :
# $FreeBSD: src/etc/dhclient.conf,v 1.2 1999/08/27 23:23:41 peter Exp $
#
# This file is required by the ISC DHCP client.
# See ``man 5 dhclient.conf'' for details.
#
# In most cases an empty file is suffient for most people as the
# defaults are usually fine.
#
interface "ed0" {
supersede domain-name "private.submonkey.net";
prepend domain-name-servers 192.168.10.1;
}
Ceri
--
keep a mild groove on
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?20011116153723.GA53802>
