Bug#552453: libc6: no fallback to nameserver 0.0.0.0
On 2009-10-26 Aurelien Jarno <aurelien@aurel32.net> wrote:
> Andreas Metzler a écrit :
> > Package: libc6
> > Version: 2.10.1-2
> > Severity: normal
[...]
> > previous versions of the resolver queried the local nameserver if
> > /etc/resolv.conf was not present or did not contain a nameserver setting:
[...]
> Looking at the code, this was never supported, and only worked by
> accident in previous versions.
A comment in resolv/res_init.c says:
* Set up default settings. If the configuration file exist, the values
* there will have precedence. Otherwise, the server address is set to
* INADDR_ANY and the default domain name comes from the gethostname().
For completeness sake the same comment later says
* The configuration file should always be used, since it is the only way
* to specify a default domain. If you are running a server on your local
* machine, you should say "nameserver 0.0.0.0" or "nameserver 127.0.0.1"
* in the configuration file.
Not the "should" not "must". On top of that I perfectly happy with not
setting domain.
This is ancient functionality, the Linux Network Administrators Guide
documents it:
6.1.3. Configuring Name Server Lookups Using resolv.conf
| When configuring the resolver library to use the BIND name service for
| host lookups, you also have to tell it which name servers to use.
| There is a separate file for this called resolv.conf. If this file
| does not exist or is empty, the resolver assumes the name server is on
| your local host.
cu andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
Reply to: