Public bug reported: Binary package hint: hostname
% hostname glup % hostname -s localhost BUT % man hostname [....] -s, --short Display the short host name. This is the host name cut at the first dot. [....] I can hack around it by changing the order of names on the 127.0.0.1 line of /etc/hosts, but that's not the point. The documentation states that -s just trims the domain off if it exists, but that's not what it does. Either it should behave exactly that way or the doc should be updated. This is Ubuntu 9.04 x86_64, updated as of 19 June 2009. hostname-2.95 package. Default nsswitch. /etc/hosts: 127.0.0.1 localhost glup glup.physics.ucf.edu 127.0.1.1 rob-laptop # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts Thanks, --jh-- ** Affects: hostname (Ubuntu) Importance: Undecided Status: New -- hostname -s returns localhost instead of name https://bugs.launchpad.net/bugs/389602 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