Comment 0 for bug 709364

Revision history for this message
Daniel Manrique (roadmr) wrote :

Binary package hint: casper

Ubuntu release: Natty (LiveCD daily image from 2011-01-27).
Package: this is present in Casper 1.254.
What I expected to happen: a domain entry in /etc/resolv.conf without quotes.
What happened instead: /etc/resolv.conf has quotes in the domain entry, causing problems while installing some other packages.

More details about this problem:

In a testing environment, we do network installs using the daily Natty images. One particularity is that we disable NetworkManager by creating an interface entry in /etc/interfaces prior to booting. Thus, scripts/casper-bottom/23networking is the sole responsible for creation of /etc/resolv.conf.

23networking parses the /etc/net-${DEVICE}.conf file and takes the DNSDOMAIN value to fill up both the domain and search entries in resolv.conf. However, the domain entry should contain only a single unquoted domain name. 23networking thus generates a resolv.conf that gives problems later on: while installing postfix, it constructs the hostname by taking the domain name from resolv.conf, coming up with things like host."domain.com" which are invalid and cause postfix to fail.

This bug is not usually apparent because most installations use NetworkManager, which takes over resolv.conf, rebuilding it from DHCP information, which it doesn't quote, unlike ipconfig.