How to Setup Reverse DNS on LAN?
Drew Tomlinson
drew at mykitchentable.net
Wed Dec 10 09:26:25 PST 2003
----- Original Message -----
From: "Stephane Bortzmeyer" <brtzmeyer at nic.fr>
Sent: Tuesday, December 09, 2003 9:40 AM
> On Tue, Dec 09, 2003 at 05:50:25AM -0800,
> Drew Tomlinson <drew at 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
More information about the freebsd-questions
mailing list