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
192.168.6.1 hosta.domain.org hosta
192.168.6.2 hostb.domain.org hostb
why do reverse lookups with fail for "files"?
Nils
--
______
(Muuuhh)
Global Village Sau ==> ^..^ |/¯¯¯¯¯
(Kann Fremdsprache) ==> (oo)
Attachment:
pgpXTJYDT7DX4.pgp
Description: PGP signature