PUzzling sshd behaviour

Ted Faber faber at ISI.EDU
Fri Sep 5 09:57:10 PDT 2003


On Fri, Sep 05, 2003 at 12:29:10PM -0400, Dwayne MacKinnon wrote:
> Ted Faber wrote:
> >On Fri, Sep 05, 2003 at 12:04:04PM -0400, Dwayne MacKinnon wrote:
> >>That much I know. I was just wondering why the daemon is trying DNS 
> >>lookup when the IP in question is listed in /etc/hosts. 
> >
> >If you haven't you need to check out /etc/host.conf
> 
> My host.conf is a FreeBSD 4.8 default one: it lists hosts, then bind. 
> That's why I don't understand why it's doing DNS... there's a listing in 
> hosts, and according to host.conf the hosts listing should be found first.

I'll bet that the problem is with the format of your /etc/hosts .  Check
out the man page (man 5 hosts) and plink with it until it does what you
want.  Sometimes the lookups through /etc/hosts are counterintuitive -
for example I've had problems related to the order of names and aliases.

-- 
Ted Faber
Info: http://www.isi.edu/~faber     PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20030905/289373f1/attachment.bin


More information about the freebsd-hackers mailing list