Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Mar 2001 15:14:09 -0800
From:      "Eric A. Perlman" <>
To:        alan4x4b <>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Losing Nameserver entries
Message-ID:  <>
In-Reply-To: <000001c0b4e0$98e321b0$0b00a8c0@burks>; from 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;
supersede domain-name "";

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

  - Eric

To Unsubscribe: send mail to
with "unsubscribe freebsd-questions" in the body of the message

Want to link to this message? Use this URL: <>