Changing host name

Michael Thompson maverickapollo at googlemail.com
Tue Apr 6 15:20:34 UTC 2010


On 06/04/2010 16:05, Patrick O'Callaghan wrote:
> On Tue, 2010-04-06 at 15:51 +0100, Michael Thompson wrote:
>   
>> When I change the hostname on my fedora 12 box, from the installation
>> default of localhost.localdomain, the network dies until it is reset
>> back.
>>     
> "localhost" is assumed always to exist and to be bound to 127.0.0.1 (see
> http://en.wikipedia.org/wiki/Localhost). You can of course give your
> machine another name as well (just add additional names to the localhost
> line in /etc/hosts), but you can't remove the meaning of localhost
> without breaking things.
>
> poc
>
>   
Yup, I knew that. I'm changing the network name, not localhost. The
hosts file reads:

127.0.0.1    localhost.localdomain   localhost    feddesk
::1     localhost.localdomain   localhost6    localhost    feddesk

Believe it or not, I'm not stupid.




-- 
Michael Thompson
http://maverickapollo.wordpress.com



More information about the users mailing list