Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Nov 2002 05:17:05 +0200
From:      Giorgos Keramidas <keramida@freebsd.org>
To:        Kelly Yancey <kbyanc@posi.net>
Cc:        freebsd-current@freebsd.org, kbyanc@freebsd.org
Subject:   Re: Can't resolve hosts via dns on the command line with latest -current
Message-ID:  <20021105031705.GA573@gray.sea.gr>
In-Reply-To: <20021104182051.S50848-100000@gateway.posi.net>
References:  <20021105011204.GD17380@gray.sea.gr> <20021104182051.S50848-100000@gateway.posi.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-11-04 18:38, Kelly Yancey <kbyanc@posi.net> wrote:
> Thanks for the info.  Are you sure that you only reverted the one delta?

Yes.  I just recompiled the kernel from -rHEAD and started logging
things while I connected to my dialup provider.  Apparently lo0 does
have the 127.0.0.1 address *and* the LOOPBACK flag but somehow fails.

When (near the end of the following log) I back only this change out,
the problems go away :/

The strange thing is that my named listening on lo0 DOES reply, as
you can see from the tcpdump output, but the reply never reaches the
ssh process that initiated the query.

=====
keramida@gray[05:05]/home/keramida$ ssh -l charon -p 666 -v labs.gr
OpenSSH_3.5p1 FreeBSD-20021029, SSH protocols 1.5/2.0, OpenSSL 0x0090607f
debug1: Reading configuration data /home/keramida/.ssh/config
debug1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0
^C

root@gray[05:04]/root# tcpdump -i lo0 -s 128 -v -n
tcpdump: listening on lo0
05:05:34.616515 127.0.0.1.49181 > 127.0.0.1.53: [udp sum ok]  24818+ AAAA? labs.gr. (25) (ttl 64, id 20931, len 53)
05:05:34.618115 127.0.0.1.53 > 127.0.0.1.49181: [udp sum ok]  24818 0/1/0 (66) (ttl 64, id 2744, len 94)
05:05:34.619452 127.0.0.1.49182 > 127.0.0.1.53: [udp sum ok]  24819+ A? labs.gr. (25) (ttl 64, id 63225, len 53)
05:05:34.621080 127.0.0.1.53 > 127.0.0.1.49182:  24819 1/6/6 labs.gr. A 62.103.160.6 (279) (ttl 64, id 1753, len 307)
05:05:39.621503 127.0.0.1.49183 > 127.0.0.1.53: [udp sum ok]  24819+ A? labs.gr. (25) (ttl 64, id 31195, len 53)
05:05:39.623584 127.0.0.1.53 > 127.0.0.1.49183:  24819 1/6/6 labs.gr. A 62.103.160.6 (279) (ttl 64, id 5785, len 307)
05:05:49.621965 127.0.0.1.49184 > 127.0.0.1.53: [udp sum ok]  24819+ A? labs.gr. (25) (ttl 64, id 34796, len 53)
05:05:49.624029 127.0.0.1.53 > 127.0.0.1.49184:  24819 1/6/6 labs.gr. A 62.103.160.6 (279) (ttl 64, id 60299, len 307)
^C
8 packets received by filter
0 packets dropped by kernel

root@gray[05:07]/usr/src/sys/kern# cvs -qR diff -kk -u -r1.133 -r1.134 uipc_socket.c | patch -p0 -R
...
root@gray[05:07]/usr/src/sys/kern# cd ../i386/conf
root@gray[05:08]/usr/src/sys/i386/conf# config -g -d /usr/obj/usr/src/sys/GRAY GRAY
Kernel build directory is /usr/obj/usr/src/sys/GRAY
Don't forget to do a ``make depend''
root@gray[05:08]/usr/src/sys/i386/conf# cd /usr/obj/usr/src/sys/GRAY
root@gray[05:08]/usr/obj/usr/src/sys/GRAY# rm uipc_socket.o
root@gray[05:08]/usr/obj/usr/src/sys/GRAY# make -DNO_MODULES all && make -DNO_MODULES install

[ reboot after backout ]

keramida@gray[05:12]/home/keramida$ ssh -l charon -p 666 -v labs.gr
OpenSSH_3.5p1 FreeBSD-20021029, SSH protocols 1.5/2.0, OpenSSL
0x0090607f
debug1: Reading configuration data /home/keramida/.ssh/config
debug1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be
trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to labs.gr [62.103.160.6] port 666.
debug1: Connection established.
...

[ and it works ]
=====

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?20021105031705.GA573>