problem with hostname
pkaplan1 at comcast.net
pkaplan1 at comcast.net
Tue Jul 7 02:51:50 UTC 2009
When I first set up my box the system prompt read:
<username>@<hostname>:$
Recently it changed to :
<username>@(none):$
When I need to invoke sudo I get:
<username>@(none):~$ sudo <command>
sudo: unable to resolve host
sudo: unable to resolve host
sudo: unable to resolve host
sudo: unable to resolve host
[sudo] password for <username>:
I can set the hostname with:
sudo hostname <hostname>
but the new hostname is not retained after reboot.
Shouldn't the following define my hostname?
<username>@(none):~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 <hostname>
# 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
<username>@(none):~$ cat /etc/hostname
<hostname>
How can I restore <hostname> permanently?
TIA
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090707/f4a3d425/attachment.html>
More information about the ubuntu-users
mailing list