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: Roland McGrath <roland at hack dot frob dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: libc-alpha at sourceware dot org, Ludovic Courtès <ludo at gnu dot org>
- Date: Tue, 21 Jan 2014 10:43:24 -0800 (PST)
- 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>
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.