In Natty, the /etc/hosts still needs manual corrections after install,
but I am not sure if this is NetworkManager's fault. After installation
with DHCP networking the hosts-file looks like this:

127.0.0.1       localhost
127.0.1.1       myhost

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

and /etc/resolv.conf is correctly set by NetworkManager:

# Generated by NetworkManager
domain my.domain
search my.domain
nameserver xxx.xxx.xxx.xxx

With this configuration 'hostname -f' does not return the FQDN as it
should. Deleting the second line of /etc/hosts or changing it to:

127.0.1.1       myhost.my.domain myhost

solves the problem. Is NetworkManager supposed to add the domain in
/etc/hosts or is this a Problem of the Installer? When I install the old
10.04 server edition with DHCP, than the domain name is correctly set in
/etc/hosts.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/659817

Title:
  NetworkManage does not set domain in /etc/hosts on DHCP connections

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to