This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: gethostbyaddr without /etc/{resolv,nsswitch}.conf
- From: ludo at gnu dot org (Ludovic CourtÃs)
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: Mike Frysinger <vapier at gentoo dot org>, libc-alpha at sourceware dot org
- Date: Tue, 21 Jan 2014 21:26:49 +0100
- Subject: Re: gethostbyaddr without /etc/{resolv,nsswitch}.conf
- Authentication-results: sourceware.org; auth=none
- References: <874n4ziu3f dot fsf at gnu dot org> <201401200128 dot 53231 dot vapier at gentoo dot org> <20140121184324 dot 10F9F7443A at topped-with-meat dot com>
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â.