gethostbyaddr without /etc/{resolv,nsswitch}.conf

Ludovic Courtès ludo@gnu.org
Tue Jan 21 20:26:00 GMT 2014


Roland McGrath <roland@hack.frob.com> skribis:

> The traditional default when /etc/resolv.conf does not exist is for DNS
> lookups to use 127.0.0.1 as nameserver.  If there is no nameserver
> listening locally, then it moves on to /etc/hosts.

In the case of reverse lookups (gethostbyaddr), it does not move on.

Ludo’.



More information about the Libc-alpha mailing list