Date: Wed, 10 Dec 2003 09:26:22 -0800 From: "Drew Tomlinson" <drew@mykitchentable.net> To: "Stephane Bortzmeyer" <brtzmeyer@nic.fr> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: How to Setup Reverse DNS on LAN? Message-ID: <035b01c3bf42$bb1d9250$0301a8c0@bigdaddy> References: <025101c3be5b$66080990$0301a8c0@bigdaddy> <20031209174018.GC1174@fetiche.sources.org>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- From: "Stephane Bortzmeyer" <brtzmeyer@nic.fr> Sent: Tuesday, December 09, 2003 9:40 AM > On Tue, Dec 09, 2003 at 05:50:25AM -0800, > Drew Tomlinson <drew@mykitchentable.net> wrote > a message of 33 lines which said: > > > When connecting via ssh to my FBSD boxes, it takes over a minute > > before the connection is established. Searching the archives > > suggests that this is due to a failed reverse DNS lookup that must > > time out before connecting. > > Probably. > > > But 192.168.1.3 does not: > > > > blacksheep> host 192.168.1.3 > > Host not found, try again. > > On FreeBSD 5.1, it appears, speaking both from the man page and from > an actual test, that host does not use /etc/hosts at all. It would be > nice to have a command which uses getaddrinfo() but host does not. I'm using 4.9. Sorry, I forgot to specify. > ping would be a better test: > > ~ % ping localhost > PING fetiche (127.0.0.1): 56 data bytes > 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.253 ms > > The name 'fetiche' was found in /etc/hosts. I'm not sure what I'm looking for here. The machine that runs the ssh client is a Win XP box named 'bigdaddy'. That resolves on the Win XP box: C:\Documents and Settings\tomlinson_dr>ping localhost Pinging bigdaddy [127.0.0.1] with 32 bytes of data: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 The FBSD box running sshd also resolves: blacksheep# ping localhost PING localhost (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.519 ms So what do I need to do? As I understand it, their needs to be an entry for the client machine in /etc/hosts which I have. Thanks, Drew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?035b01c3bf42$bb1d9250$0301a8c0>