Comment 2 for bug 501130

Revision history for this message
gmoore777 (guy-moore) wrote :

1.)
I just built out a brand new machine with LucidLynx Release Candidate and updated to the latest packages and rebooted.
So this is a virgin system. ( i haven't edited a thing.)

2.)
Here is the result of this set of commands:

$ hostname; hostname -f; hostname -s; hostname -i
machine69
machine69
machine69
127.0.1.1

$ sudo ifconfig -a
   eth1 Link encap:Ethernet HWaddr 00:21:70:53:d3:77
               inet addr:164.179.215.77 Bcast:164.179.215.255 Mask:255.255.255.0

From another machine in the network: $ nslookup machine69
   machine69.DOMAIN.com
   164.179.215.77

From my point of view,
I clearly have an IP address, so `hostname -i` is wrong.
I clearly am in DNS in the network with a FQDN, so `hostname -f` is wrong.
(not sure what I think what just `hostname` should output at this time.)

3.)
If I edit /etc/hostname, and change machine69 to "machine69.DOMAIN.com"
and run `sudo hostname machine69.DOMAIN.com`, I should be able to influence
both the `hostname` and `hostname -f` command.

$ hostname; hostname -f; hostname -s; hostname -i
machine69.DOMAIN.com
machine69
machine69
127.0.1.1

So at least `hostname` has been "fixed", but `hostname -f` and `hostname -i` still broken.

4.)
I will run `apport-collect -p linux 501130` after this posting.

5.)
the hostname, "machine69" and domain name "DOMAIN" has been changed from the real names in this posting.

6.)
Does anyone agree with me about what `hostname -f` and `hostname -i` should output?

7.)
And does anyone else show the same lack of output from the hostname commands?