Hello,
Just upgraded from Ubuntu Server 9.04 to 10.04 and in the process my hostname was lost.
Code:
$ hostname
(none)
$ uname -n
(none)
Although configure file looks fine:
Code:
$ cat /etc/hostname
bob_ubuntu
$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 bob_ubuntu.domain.com bob_ubuntu
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
ff02::3 ip6-allhosts
Have set hostname with:
Code:
$ sudo hostname bob_ubuntu
hostname: the specified hostname is invalid
But doing it this way you cant use '_' ..
Any suggestions?
Regards, cbob
Bookmarks