[Resolvconf-devel] Bug#514411: Bug#514411: Bug#514411: resolvconf breaks all

Luke Diamand luke at diamand.org
Sun Feb 8 12:15:59 UTC 2009


I've had exactly the same problem.

Digging through the resolvconf scripts, it looks like the following line 
in the libc update script is the cuprit:

line 116 of /etc/resolvconf/update.d/libc

[ "$RSLVCNFFILES" ] && sed -e '/^[[:space:]]*$/d' -e '/^[[:space:]]*#/d' 
-e 
'/^[[:space:]]*\(\(nameserver\)\|\(search\)\|\(domain\)\)[[:space:]]/d' 
$RSLVCNFFILES >> "$TMPFILE" 2>/dev/null

The problem is that the third sed expression will delete any line on the 
input that has a nameserver, search or domain clause in it (i.e. the 
useful data). You are then left with only the nameservers found in the 
variable NMSRVRS.

Removing the last sed expression seems to fix it, but I don't know why 
it was put there in the first place. Side effects?

Luke Diamand






More information about the Resolvconf-devel mailing list