Re: Really stupid Q - hostname

From: Nico Kadel-Garcia (nkadel_at_comcast.net)
Date: 10/09/03


Date: Wed, 08 Oct 2003 20:31:57 -0400

repo wrote:

> On Wed, 08 Oct 2003 23:23:14 +0000, tc wrote:
>
>
>>I know... this is a really stupid question.....
>>
>>BUT; how do I change the system name from localhost on a RH 7.3 system
>>???
>>
>>
>>thx for any help !
>>
>>feeling foolish in W Canada.......................
>
>
> edit /etc/sysconfig/network
> change localhost into a name you like (eq mymachine)
> edit/etc/hosts
> make sure it contains at least
> 127.0.0.1 localhost localhost.localdomain
> 127.0.0.1 mymachine linuxfan.mymachine
> where linuxfan is a name you choose.

Don't do this. If your machines's hostname winds up published in your
local DNS or NIS hosts configuration, it will point various connections
to localhost instead of to the machine's IP address and break things at
awkward moments.

This approach is only appropriate if your desired hostname is not
published to anyone else in your network.



Relevant Pages

  • Re: Really stupid Q - hostname
    ... how do I change the system name from localhost on a RH 7.3 system ... > thx for any help! ... change localhost into a name you like (eq mymachine) ...
    (comp.os.linux.setup)
  • RE: IIS5 question
    ... edit with notepad and change localhost to your computer name. ... will not guarantee that your application will work because it should work ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Magic password
    ... What is the username and password when one wants to administer your ... printer through http://localhost:631 any particular reason it's ... Would just love to change localhost to my without buying a book. ...
    (Ubuntu)