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

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

On Wed, Jun 13, 2001 at 06:04:23PM +0200, Dominik Kubla wrote:
> On Wed, Jun 13, 2001 at 04:39:18PM +0100, Edouard Lafargue wrote:
> >   That's the very problem: even with hosts in /etc/hosts, the resolver still seems to do DNS queries for reverse-lookups! It's the case for every program that does "gethostbyname", really.
> > 
> > /etc/host.conf:
> > hosts:          files  dns
>                          ^^^

> RTFM (nsswitch.conf(5) to be precise)! Remove "dns" or use:
> 		  files [NOTFOUND=return] dns
> which is nearly equivalent (dns would only be used if /etc/hosts was
> unavailable: makes no sense to me, but...)
but if /etc/hosts is e.g. like this	hosta.domain.org	hosta	hostb.domain.org	hostb

why do reverse lookups with fail for "files"?


Global Village Sau  ==>        ^..^ |/¯¯¯¯¯
(Kann Fremdsprache) ==>        (oo)

Attachment: pgptb65npv9zA.pgp
Description: PGP signature

Reply to: