From owner-freebsd-questions Mon Feb 10 1:58:46 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E95F137B401 for ; Mon, 10 Feb 2003 01:58:44 -0800 (PST) Received: from foem.leiden.webweaving.org (fia224-72.dsl.hccnet.nl [62.251.72.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EF4943F3F for ; Mon, 10 Feb 2003 01:58:40 -0800 (PST) (envelope-from dirkx@webweaving.org) Received: from foem (foem [10.11.0.2]) by foem.leiden.webweaving.org (8.12.6/8.12.6) with ESMTP id h1A9wawc010082 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 10 Feb 2003 10:58:36 +0100 (CET) (envelope-from dirkx@webweaving.org) Date: Mon, 10 Feb 2003 10:58:36 +0100 (CET) From: Dirk-Willem van Gulik X-X-Sender: dirkx@foem.leiden.webweaving.org To: Per Nilsson Cc: questions@FreeBSD.ORG Subject: Re: resolv.conf In-Reply-To: <20030209190051.R63678-100000@sparbanken.org> Message-ID: <20030210105620.P28907-100000@foem.leiden.webweaving.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 9 Feb 2003, Per Nilsson wrote: > I got to have this to be enable to send mail, and from time to time, the > file /etc/resolv.conf changes back to the standard: > > search > nameserver 10.0.0.1 > nameserver 10.0.0.2 > > and i dont know how to do to have the resolv.conf NOT to be changed You propably have dhclient running, the DHCP deamon. Ever time your IP lease expires (typically every 5 to 60 minutes) it will negotiate a new IP address for you with your DHCP server. Along with the settings it get from the DHCP server are DNS settings. See man dhclient.conf or add in /etc a file #/etc/dhclient.conf supersede domain-name "sparbanken.org" DW To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message