From owner-freebsd-questions@FreeBSD.ORG Thu Mar 16 22:09:55 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 91F8916A438 for ; Thu, 16 Mar 2006 22:09:55 +0000 (UTC) (envelope-from erikt@owl.midgard.homeip.net) Received: from pne-smtpout1-sn1.fre.skanova.net (pne-smtpout1-sn1.fre.skanova.net [81.228.11.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 654D743D6E for ; Thu, 16 Mar 2006 22:09:41 +0000 (GMT) (envelope-from erikt@owl.midgard.homeip.net) Received: from falcon.midgard.homeip.net (83.253.29.241) by pne-smtpout1-sn1.fre.skanova.net (7.2.070) id 441850BB0005A086 for freebsd-questions@freebsd.org; Thu, 16 Mar 2006 23:09:40 +0100 Received: (qmail 48714 invoked from network); 16 Mar 2006 23:09:39 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with SMTP; 16 Mar 2006 23:09:39 +0100 Received: (qmail 1593 invoked by uid 1001); 16 Mar 2006 23:09:39 +0100 Date: Thu, 16 Mar 2006 23:09:39 +0100 From: Erik Trulsson To: Duane Whitty Message-ID: <20060316220939.GA1524@owl.midgard.homeip.net> Mail-Followup-To: Duane Whitty , freebsd-questions@freebsd.org References: <4419D8C9.4010005@greenmeadow.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4419D8C9.4010005@greenmeadow.ca> User-Agent: Mutt/1.5.11 Cc: freebsd-questions@freebsd.org Subject: Re: resolv.conf getting rewritten at system startup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Mar 2006 22:09:55 -0000 On Thu, Mar 16, 2006 at 05:29:45PM -0400, Duane Whitty wrote: > Hi all, > > I am running FBSD 6.0-RELEASE > > I use DHCP to configure my network interface. > At startup my resolv.conf is overwritten, setting my > nameserver to the address of the router running DHCP. > > I tried commenting out almost all of the rc.d/resolv > startup script but to no avail. > > I read the man page for dhcp-options and then proceeded to add > option domain-name-servers a.b.c.d > This was also of no help. > > I then remembered something about FBSD 6 no longer using ISC dhcp client. > > I am running BIND 9.3.1 with internal and external views of my namespace > set-up so > it is imperative that I be able to tell hosts on the internal network > which name server > to use. > > If anyone has any ideas I'd appreciate the help. Read the manpage for dhclient.conf(5) and look at the 'supersede' or 'prepend' directives. E.g. If you always want to use a nameserver with IP 12.34.56.78 you would put the line supersede domain-name-servers 12.34.56.78; in /etc/dhclient.conf > > Thanks in advance, > > Duane > > P.S. > > Is there a man page for the dhcp client FBSD 6 is using > (what is FBSD 6 using)? 'man dhclient' should work fine. FBSD 6 uses the OpenBSD dhclient (which I believe derive from an older version of the ISC one.) -- Erik Trulsson ertr1013@student.uu.se