changing localhost name

Graydon oak at
Sun Nov 30 14:53:27 UTC 2003

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:
> >
> >   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

You won't see any change until after you've restarted the network --
/etc/init.d/network restart

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

More information about the fedora-list mailing list