[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: (long) tcpd compilation options and forced reverse lookup




Nils Rennebarth <nils@ipe.uni-stuttgart.de> writes:

> but if /etc/hosts is e.g. like this
> 
> 192.168.6.1	hosta.domain.org	hosta
> 192.168.6.2	hostb.domain.org	hostb
> 
> why do reverse lookups with fail for "files"?

  I just checked: the machine still tries to use the DNS even if nsswitch.conf says "files dns" and the host in in /etc/hosts. And anyway a reverse lookup on 192.168.6.1 cannot work as it's a private IP...

  In my case, if I disconnect the ethernet from my laptop, and to a "telnet localhost", then I have to wait 30 seconds at least before getting a prompt, and a "strace telnet localhost" shows the telnet process trying to contact the DNS. Is this the case on your machine ?

  This is not normal, DNS lookups should only occur for files not in the hostfile.

  Or there is something I don't understand at all in nsswitch.conf

Ed



Reply to: