Comment 34 for bug 195308

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 195308] Re: unable to resolve host

On Sat, Aug 23, 2008 at 12:02:26AM -0000, Scotty wrote:
> Strange, typing in:

> scotty@:~$ hostname

> returns nothing. A blank line. I originally had localhost as the
> 127.0.0.1 and changed it as per one of the suggested "fixes". Changing
> it back to localhost produces no positive results. Any idea how to
> change the blank return for a call of the hostname (as I am assuming
> that is part of the problem).

You can set your hostname by running 'sudo hostname scotty-laptop'. To fix
this permanently (i.e., across reboots), set this name in the /etc/hostname
file.