** Description changed:
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
+ 23networking parses the /tmp/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.
+ resolv.conf. The domain entry should contain only a single unquoted
+ domain name. However, the ipconfig utility, which generates
+ /tmp/net-${DEVICE}.conf files based on DHCP information, adds quotes
+ around the value for DNSDOMAIN. 23networking takes this value verbatim,
+ including the quotes, and 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.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/709364
Title:
Invalid domain in /etc/resolv.conf on network install with
NetworkManager disabled
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs