Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Nov 2002 10:54:36 -0800 (PST)
From:      Kelly Yancey <kbyanc@posi.net>
To:        Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
Cc:        Doug Barton <DougB@FreeBSD.org>, <freebsd-current@FreeBSD.org>, <kbyanc@FreeBSD.org>
Subject:   Re: Can't resolve hosts via dns on the command line with latest -current
Message-ID:  <20021104104809.N50081-100000@gateway.posi.net>
In-Reply-To: <ybsfzuieih1.wl@ett.sat.t.u-tokyo.ac.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 4 Nov 2002, Hidetoshi Shimokawa wrote:

> 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;
>

  I suspect something in lib/libc/net/res_send.c is using special knowledge of
the contents of the socket buffer so calculate the real amount of data that
can be read (which this patch does automatically).  I'm looking into it.

>
> 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"
> >

  What is this supposed to demonstrate?

> > /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
> >

  Thanks.  I'll let you know what I find,

  Kelly

--
Kelly Yancey -- kbyanc@{posi.net,FreeBSD.org}
FreeBSD, The Power To Serve: http://www.freebsd.org/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021104104809.N50081-100000>