From owner-freebsd-current Sun Nov 3 10: 0:26 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3989E37B401; Sun, 3 Nov 2002 10:00:25 -0800 (PST) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04B3643E4A; Sun, 3 Nov 2002 10:00:21 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id 042662A88D; Sun, 3 Nov 2002 10:00:17 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Doug Barton Cc: freebsd-current@FreeBSD.org Subject: Re: Can't resolve hosts via dns on the command line with latest -current In-Reply-To: <3DC52724.52A75A@FreeBSD.org> Date: Sun, 03 Nov 2002 10:00:16 -0800 From: Peter Wemm Message-Id: <20021103180017.042662A88D@canning.wemm.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Doug Barton wrote: > Howdy, > > With -current built from sources updated at around 8pm PST, I can't > resolve hosts on the command line if /etc/resolv.conf points to a name > server running on the local host. The local name server itself is > working fine, and I can reach any host in /etc/hosts as well. > > ktrace /sbin/ping hub.freebsd.org > ^C > > kdump > 651 ktrace RET ktrace 0 > 651 ktrace CALL execve(0xbfbffb03,0xbfbff9e4,0xbfbff9f0) > 651 ktrace NAMI "/sbin/ping" > > /etc/nsswitch.conf is unchanged, and contains only: > hosts: files dns > > It doesn't matter if /etc/resolv.conf points to 127.0.0.1, or the IP of > the box. As soon as I point /etc/resolv.conf at a name server on another > host, it works. I'm having similar problems. If I have 2 or 3 nameservers listed and 127.0.0.1 first, then I get a 10-20 second timeout before the resolver library switches to another server. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message