[Pkg-utopia-maintainers] Bug#898038: avahi-daemon-check-dns.sh hangs forever if a nameserver has ::1 in the address

Andrej Shadura andrewsh at debian.org
Sun May 6 10:19:48 BST 2018


On Sun, 06 May 2018 09:27:30 +0200 Andrej Shadura <andrewsh at debian.org>
wrote:
> There seems to be an error in the regex used to detect the presence of
> the local nameservers:
> 
>     egrep -q "nameserver 127.0.0.1|::1" /etc/resolv.conf
> 
> This also happily greps things like:
> 
>     ::1
>     nameserver 2001:1234:5678::10
>     ::1234
>     wrong::1
> 
> etc.

Of course, I forgot to mention, this happens when the network is already
down, but /etc/resolv.conf hasn't been cleaned up, for example, when NM
is deconfiguring the interface.

-- 
Cheers,
  Andrej



More information about the Pkg-utopia-maintainers mailing list