Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I downloaded the ubuntu 10.10 ISO image for AMD64. When i start the ISO ubuntu gets an IP address from my DHCP server. NetworkManager updates /etc/resolv.conf according to the DNS config provided by DHCP.

But NM does not apply the domain name to /etc/hosts. When i do 'hostname -f' i simple get 'ubuntu', but it should be ''. Any ideas what's wrong here? Is it my DHCP server or is it some missing config in ubuntu?

share|improve this question
up vote 2 down vote accepted

DHCP doesn't reliably give a domain name; but really a search domain for users to be able to quickly reach other systems by their short name rather than a full domain name.

It should be up to the DHCP server to hand off IP addresses (and hostname) that will match what's in DNS, or to take the hostname passed by the machine to update DNS information. Unfortunately, we're not quite there yet.

Note, there's a long-standing bug about the behavior of hostname -f in Ubuntu:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.