From owner-freebsd-current Sun Nov 3 8:17:18 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 614F237B401; Sun, 3 Nov 2002 08:17:16 -0800 (PST) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [133.11.205.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39C3843E4A; Sun, 3 Nov 2002 08:17:15 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is1.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id 8C2882180F9; Mon, 4 Nov 2002 01:16:59 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) by is1.mh.itc.u-tokyo.ac.jp (8.11.3/8.11.3) with ESMTP id gA3GGwu03534; Mon, 4 Nov 2002 01:16:58 +0900 Received: from ett.sat.t.u-tokyo.ac.jp (nat.keisu.t.u-tokyo.ac.jp [133.11.68.2]) by mailhosting.itc.u-tokyo.ac.jp (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id AHH24089; Mon, 4 Nov 2002 01:16:58 +0900 (JST) Date: Mon, 04 Nov 2002 01:16:58 +0900 Message-ID: From: Hidetoshi Shimokawa To: Doug Barton Cc: freebsd-current@FreeBSD.org, kbyanc@FreeBSD.org Subject: Re: Can't resolve hosts via dns on the command line with latest -current In-Reply-To: <3DC52724.52A75A@FreeBSD.org> References: <3DC52724.52A75A@FreeBSD.org> User-Agent: Wanderlust/2.11.0 (Wonderwall) REMI/1.14.3 (Matsudai) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.4 (patch 8) (Honest Recruiter) (i386--freebsd) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7: #j7i14gu$jgR\S*&C3R/pJX List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have the same problem and reverting rev. 1.134 of /sys/kern/uipc_socket.c fixes the problem. The change might have something wrong with a loopback interface. /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html Index: uipc_socket.c =================================================================== RCS file: /home/ncvs/src/sys/kern/uipc_socket.c,v retrieving revision 1.135 diff -u -r1.135 uipc_socket.c --- uipc_socket.c 2 Nov 2002 05:14:30 -0000 1.135 +++ uipc_socket.c 3 Nov 2002 14:45:16 -0000 @@ -1784,7 +1784,11 @@ { struct socket *so = (struct socket *)kn->kn_fp->f_data; +#if 0 kn->kn_data = so->so_rcv.sb_cc - so->so_rcv.sb_ctl; +#else + kn->kn_data = so->so_rcv.sb_cc; +#endif if (so->so_state & SS_CANTRCVMORE) { kn->kn_flags |= EV_EOF; kn->kn_fflags = so->so_error; At Sun, 03 Nov 2002 05:39:48 -0800, 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. > > My -current system from last weekend worked just fine. > > Doug > > -- > "We have known freedom's price. We have shown freedom's power. > And in this great conflict, ... we will see freedom's victory." > - George W. Bush, President of the United States > State of the Union, January 28, 2002 > > Do YOU Yahoo!? > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message