From owner-freebsd-questions@FreeBSD.ORG Sun May 22 19:19:14 2005 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 E7DE016A41C for ; Sun, 22 May 2005 19:19:14 +0000 (GMT) (envelope-from dkelly@Grumpy.DynDNS.org) Received: from smtp.knology.net (smtp.knology.net [24.214.63.101]) by mx1.FreeBSD.org (Postfix) with SMTP id 66F3643D1D for ; Sun, 22 May 2005 19:19:12 +0000 (GMT) (envelope-from dkelly@Grumpy.DynDNS.org) Received: (qmail 25142 invoked by uid 0); 22 May 2005 19:19:10 -0000 Received: from user-69-73-60-132.knology.net (HELO Grumpy.DynDNS.org) (69.73.60.132) by smtp2.knology.net with SMTP; 22 May 2005 19:19:10 -0000 Received: by Grumpy.DynDNS.org (Postfix, from userid 928) id 08B2D6844; Sun, 22 May 2005 14:18:55 -0500 (CDT) Date: Sun, 22 May 2005 14:18:55 -0500 From: David Kelly To: Forrest Aldrich Message-ID: <20050522191855.GA6647@Grumpy.DynDNS.org> References: <4290D2B9.8060307@forrie.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4290D2B9.8060307@forrie.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-questions@freebsd.org Subject: Re: dhclient on FreeBSD-4.10 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: Sun, 22 May 2005 19:19:15 -0000 On Sun, May 22, 2005 at 02:43:05PM -0400, Forrest Aldrich wrote: > I'm having a problem with dhclient on FreeBSD-4.10, where I can't seem > to get it to work properly. Just what are you doing to test? I suggest killing dhclient and starting it manually, "killall dhclient; /sbin/dhclient fxp0" Then look at the contents of /etc/resolv.conf to see if its written the way you expect. If so then dhclient is working and named is not. The way you stated the problem it isn't clear as to whether you have evidence whether dhclient is not working or named. > My ISP uses DHCP (Comcast), and I want to use my own "named" instance, > opting to forward to theirs. According to the dhclient.conf manpage, I > should be able to do either of these: > > interface "fxp0" { > prepend domain-name-servers 192.168.1.1; > } > > # supersede domain-name-servers 127.0.0.1; > # supersede domain-name-servers 192.168.1.1; > > > And I've tried both, they do not work. This works for me. Could use prepend rather than supersede on domain-name-servers and retian a fall-back failsafe direct to one's ISP. interface "fxp0" { supersede domain-name "home.local"; supersede domain-name-servers 127.0.0.1; } The result of the above is: % cat /etc/resolv.conf search home.local nameserver 127.0.0.1 % -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.