When called with -s, -l, -a, etc. hostname looks up the resulting names
using the resolver (as mentioned in the man page)

Thus if you change the hostname of the system without adding the new
name and IP to /etc/hosts, hostname will fail.  This is quite normal.

This is why the installer always ensures that the hostname is in
/etc/hosts

** Changed in: hostname (Ubuntu)
       Status: Incomplete => Invalid

-- 
hostname bug: does not parse command line options properly
https://bugs.launchpad.net/bugs/253100
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to