changing localhost name
AuntieParticle
AuntieParticle at satx.rr.com
Sun Nov 30 15:42:46 UTC 2003
Graydon wrote:
>On Sun, Nov 30, 2003 at 02:32:18AM -0600, AuntieParticle scripsit:
>
>
>>>If all you want to do is create an alias for 'localhost', you can do
>>>it like:
>>>
>>>127.0.0.1 localhost localhost.localdomain nameyouwant
>>>
>>>
>>>
>>Yes believe this is all I wish to do.
>>
>>Should I then also change in etc/sysconfig/network? :
>>
>>HOSTNAME=localhost.localdomain
>>
>>to
>>
>>HOSTNAME=nameiwant.localdomain
>>
>>or just leave that part alone?
>>
>>
>
>I'd just use HOSTNAME=nameiwant
>
>Changing /etc/sysconfig/network is the change you'll see in things like
>prompts and uname -a and so on; it seems likely that you want to do
>that. A "hostname" entry /etc/sysconfig/network over-rides a hostname
>assigned via DHCP, your service provider, etc.
>
>If you have DHCP from a SOHO router or similar, you may otherwise get a
>generic hostname assigned from the router. If you get a hostname from
>your service provider via PPPoE, it's just possible that you need to
>allow that for their network to be happy, but I don't think that is
>likely.
>
>You won't see any change until after you've restarted the network --
>/etc/init.d/network restart
>
>
>
>
Thanks! That was just what I needed. It worked great!
AP
More information about the users
mailing list