On Sun, 06 May 2018 09:27:30 +0200 Andrej Shadura <andre...@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