Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Mar 2001 15:14:09 -0800
From:      "Eric A. Perlman" <eric@yikes.com>
To:        alan4x4b <alan4x4b@home.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Losing Nameserver entries
Message-ID:  <20010325151409.A26490@yikes.com>
In-Reply-To: <000001c0b4e0$98e321b0$0b00a8c0@burks>; from alan4x4b@home.com on Sat, Mar 24, 2001 at 10:03:25PM -0600
References:  <000001c0b4e0$98e321b0$0b00a8c0@burks>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 24, 2001 at 10:03:25PM -0600, alan4x4b wrote:
> Every couple of days I have to go back in the the resolv.conf file and type
> in the nameserver address for my @home connection.  Is there an entry that I
> can put somewheres that will not lose this info?  Any help would be
> appreciated.

Does @home use DHCP to assign addresses?  If so, dhclient is probably
clobbering /etc/resolv.conf everytime it gets a new lease.

You can fix this by adding something like the following to /etc/dhclient.conf:

prepend domain-name-servers 10.1.2.3;
supersede domain-name "mydomain.com";

This will make 10.1.2.3 the first name server, and set your domain to
mydomain.com.  man dhclient.conf for more information.

  - Eric


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?20010325151409.A26490>