Re: changing localhost name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


-- 
oak@xxxxxxxxxxxx | Uton we hycgan    hwaer we ham agen,
                 | ond thonne gedhencan    he we thider cumen.
                 |   -- The Seafarer, ll. 117-118.




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux