[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#552453: libc6: no fallback to nameserver 0.0.0.0



Package: libc6
Version: 2.10.1-2
Severity: normal

Hello,

previous versions of the resolver queried the local nameserver if
/etc/resolv.conf was not present or did not contain a nameserver setting:

(SID)ametzler@argenau:~$ dpkg -l libc6 | tail -n1
ii  libc6          2.9-27         GNU C Library: Shared libraries
(SID)ametzler@argenau:~$ strace -vf -s 132  getent hosts ftp.at.debian.org 2>&1 | grep ^connect
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("0.0.0.0")}, 28) = 0
(SID)ametzler@argenau:~$ ls /etc/resolv.conf
ls: cannot access /etc/resolv.conf: No such file or directory


libc6  2.10.1 is missing this fallback:

SID)ametzler@argenau:~$ strace -vf -s 132  getent hosts ftp.at.debian.org 2>&1 | grep ^connect
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)

cu andreas
PS: CCing Mika since he mentioned stumbling upon this on IRC.
-- 
`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: