From owner-freebsd-questions Sun Mar 25 15:13:52 2001 Delivered-To: freebsd-questions@freebsd.org Received: from nerf.yikes.com (nerf.yikes.com [209.228.7.149]) by hub.freebsd.org (Postfix) with ESMTP id B823337B718 for ; Sun, 25 Mar 2001 15:13:50 -0800 (PST) (envelope-from eric@nerf.yikes.com) Received: (from eric@localhost) by nerf.yikes.com (8.11.1/8.11.1) id f2PNE9V26988; Sun, 25 Mar 2001 15:14:09 -0800 (PST) (envelope-from eric) 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: <20010325151409.A26490@yikes.com> References: <000001c0b4e0$98e321b0$0b00a8c0@burks> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <000001c0b4e0$98e321b0$0b00a8c0@burks>; from alan4x4b@home.com on Sat, Mar 24, 2001 at 10:03:25PM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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