[Pkg-utopia-maintainers] Bug#629509: avahi-daemon-check-dns.sh do not honour comments in /etc/resolv.conf

Jonathan Michalon johndescs at gmail.com
Tue Jun 7 08:55:01 UTC 2011


Package: avahi-daemon
Version: 0.6.27-2+squeeze1
Severity: normal

The script at
/usr/lib/avahi/avahi-daemon-check-dns.sh
do not honour comments (#-starting lines) when using /etc/resolv.conf

This causes some delay on system shutdown (and not bootup) if you have 
a line containing the searched pattern (127.0.0.1) like
#nameserver 127.0.0.1
in /etc/resolv.conf (which I had left after tests on DNS lags and caching).

BTW I wonder whether this script should not just be ran on interface up...
it seems it has nothing to do at shutdown.

Steps to reproduce:
  - add this line to /etc/resolv.conf:
    #nameserver 127.0.0.1
  - run (as superuser): (it will shut down all your network connections !)
    invoke-rc.d networking stop
  - notice the delay, you may run a 'ps aux' quickly and see the script runnning
    because it tries to check your local DNS server which you have not


-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages avahi-daemon depends on:
ii  adduser          3.112+nmu2              add and remove users and groups
ii  bind9-host [host 1:9.7.3.dfsg-1~squeeze2 Version of 'host' bundled with BIN
ii  dbus             1.2.24-4                simple interprocess messaging syst
ii  host             1:9.7.3.dfsg-1~squeeze2 Transitional package
ii  libavahi-common3 0.6.27-2+squeeze1       Avahi common library
ii  libavahi-core7   0.6.27-2+squeeze1       Avahi's embeddable mDNS/DNS-SD lib
ii  libc6            2.11.2-10               Embedded GNU C Library: Shared lib
ii  libcap2          1:2.19-3                support for getting/setting POSIX.
ii  libdaemon0       0.14-2                  lightweight C library for daemons 
ii  libdbus-1-3      1.2.24-4                simple interprocess messaging syst
ii  libexpat1        2.0.1-7                 XML parsing C library - runtime li
ii  lsb-base         3.2-23.2squeeze1        Linux Standard Base 3.2 init scrip

Versions of packages avahi-daemon recommends:
ii  libnss-mdns                   0.10-3.1   NSS module for Multicast DNS name 

Versions of packages avahi-daemon suggests:
ii  avahi-autoipd          0.6.27-2+squeeze1 Avahi IPv4LL network address confi

-- no debconf information





More information about the Pkg-utopia-maintainers mailing list