[Resolvconf-devel] Bug#628524: Bug on purge and reinstall

Thomas Hood jdthood at gmail.com
Mon May 30 19:53:22 UTC 2011


(cont'd)

Here is what happens if nameserver information suppliers *DO*
include resolvconf dpkg-event hook scripts.

Debian system boots up.  Some interface configurer configures
a network interface and obtains an external nameserver address.
Dnsmasq starts.

* /etc/resolv.conf lists both external nameserver address
  and loopback address (for dnsmasq)

Install resolvconf

* /run/resolvconf/interface/original.resolvconf lists both addresses
* /etc/resolv.conf lists both addresses
* /var/run/dnsmasq/resolv.conf lists both addresses

Resolvconf update

* /run/resolvconf/interface/original.resolvconf lists both addresses
* /etc/resolv.conf lists only loopback address
* /var/run/dnsmasq/resolv.conf lists both addresses

Purge resolvconf

* /etc/resolv.conf lists both addresses because the interface
configurer inserts its nameserver address into resolv.conf again.

End.  The original situation has been recreated.  There is
no problem!

Now here's what happens if nameserver information suppliers
include resolvconf dpkg-event hook scripts *and* the include-
original-nameserver-information workaround is removed.

Debian system boots up.  Some interface configurer configures
a network interface and obtains an external nameserver address.
Dnsmasq starts.

* /etc/resolv.conf lists both external nameserver address
  and loopback address (for dnsmasq)

Install resolvconf

* /etc/resolv.conf lists loopback address
* /var/run/dnsmasq/resolv.conf lists external address

Purge resolvconf

* /etc/resolv.conf lists both addresses

End.  The original situation has been recreated.  There is
no problem at all!

These scenarios are fiction, however, because suppliers of
nameserver information don't cooperate when they write to
/etc/resolv.conf as is assumed in the "purge resolvconf"
results above.

The idea that all suppliers of nameserver information will
actually include resolvconf dpkg-event hook scripts within
our lifetimes is, furthermore, highly fantastic.
-- 
Thomas





More information about the Resolvconf-devel mailing list