Comment 46 for bug 327362

Revision history for this message
Andreas Ringlstetter (ext3h) wrote :

I think we are talking about two different bugs: In some networks there is actually a .local-domain defined, but there are also a lot of false positives!

In /usr/lib/avahi/avahi-daemon-check-dns.sh line 58 is faulty:
    if echo "$OUT" | egrep -vq 'has no|not found'; then

The "host"-command might return additional lines which contain debug-messages with a trailing ";; " but those are not recognized by this script and therby result in the shutdown of avahi-daemon.

Line 58 must be changed into the following to get rid of the false positives:
    if echo "$OUT" | egrep -vq 'has no|not found'; then

The suggested solution with adding AVAHI_DAEMON_DETECT_LOCAL=0 will disable the faulty check, but it does not solve the bug itself, even worse it will cause avahi to enabled in networks where the local-domain may be used by important services!