From owner-freebsd-questions@FreeBSD.ORG Fri Apr 22 10:00:49 2005 Return-Path: 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 0805916A4E0 for ; Fri, 22 Apr 2005 10:00:49 +0000 (GMT) Received: from mailhost.frm2.tum.de (mailhost.frm2.tum.de [129.187.179.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD04343D5D for ; Fri, 22 Apr 2005 10:00:32 +0000 (GMT) (envelope-from Joerg.Pulz@frm2.tum.de) Received: from localhost (mailhost.frm2.tum.de [129.187.179.12]) by mailhost.frm2.tum.de (8.13.1/8.13.1) with ESMTP id j3MA0SZs020970; Fri, 22 Apr 2005 12:00:28 +0200 (CEST) (envelope-from jpulz@frm2.tum.de) Received: from hades.admin.frm2 (hades.admin.frm2 [172.25.1.10]) by mailhost.frm2.tum.de (8.13.1/8.13.1) with ESMTP id j3MA0NLp020967 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 22 Apr 2005 12:00:23 +0200 (CEST) (envelope-from jpulz@frm2.tum.de) Received: from hades.admin.frm2 (localhost [127.0.0.1]) by hades.admin.frm2 (8.13.3/8.13.3) with ESMTP id j3MA0NqV089476; Fri, 22 Apr 2005 12:00:23 +0200 (CEST) (envelope-from jpulz@frm2.tum.de) Received: (from jpulz@localhost) by hades.admin.frm2 (8.13.3/8.13.3/Submit) id j3MA0M0k089475; Fri, 22 Apr 2005 12:00:22 +0200 (CEST) (envelope-from jpulz) Date: Fri, 22 Apr 2005 12:00:19 +0200 (CEST) From: Joerg Pulz To: Fabian Anklam In-Reply-To: <467b1e7a05042202305325e262@mail.gmail.com> Message-ID: <20050422115545.S955@hades.admin.frm2> References: <467b1e7a05042202305325e262@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: at mailhost.frm2.tum.de cc: freebsd-questions@freebsd.org Subject: Re: Prevent DHCP from changing resolv.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2005 10:00:50 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 22 Apr 2005, Fabian Anklam wrote: > Hi All, > > I have a minor problem regarding my network configuration, > specifically that the external interface on my router gets it's IP via > DHCP from the ISP, so in rc.conf > > ifconfig_xl0="DHCP" > > is set. This leads to the single entry in resolv.conf that I want to > be there, namely > > nameserver 127.0.0.1 > > being replaced with my ISP's nameservers, which in return makes > resolving of LAN IPs or even localhost via the installed BIND > difficult for the machine. I don't want dhclient to change the > resolv.conf. > > I checked the man pages for resolv.conf, rc.conf and dhclient but > couldn't find anything there relating to my problem. Hi, the file you need to modify is /etc/dhclient.conf. for parameters see dhclient.conf(5) normally this file is empty, but you can insert global or per interface require lines for informations the DHCP server has to submit to the client that the IP is acceptable. you can also insert global or per interface lines for informations you want to get from the DHCP server if available but you don't care if the DHCP server gives you nothing on these options and the IP address is accepted. hope that helps joerg - -- The beginning is the most important part of the work. -Plato -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCaMs2SPOsGF+KA+MRAqq4AJ95xhwr4lCKylNi1R2mfBgvtHMkoQCgojT1 SefND9ihSVSrSCKq+0n6wFs= =3VLp -----END PGP SIGNATURE-----