How to Setup Reverse DNS on LAN?

Stephane Bortzmeyer brtzmeyer at
Tue Dec 9 23:35:10 PST 2003

On Tue, Dec 09, 2003 at 05:50:25AM -0800,
 Drew Tomlinson <drew at> 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.


> But does not:
> blacksheep> host
> 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.

ping would be a better test:

~ % ping localhost
PING fetiche ( 56 data bytes
64 bytes from icmp_seq=0 ttl=64 time=0.253 ms

The name 'fetiche' was found in /etc/hosts.

More information about the freebsd-questions mailing list