[CentOS] Changing hostname?

MHR mhullrich at gmail.com
Mon Sep 15 20:09:24 UTC 2008


On Mon, Sep 15, 2008 at 12:41 PM, Marcus Moeller <mm at gcug.de> wrote:
>
> So the conclusion seems to be:
>
> If you have a local interface only you should just set:
>
> 127.0.0.1       localhost
> ::1                  localhost6
>
> in /etc/hosts and
>
> HOSTNAME=localhost
>
> in /etc/sysconfig/network
>
> This means it is not suggested to have a hostname other than localhost
> on a loopback only box.
>
> If you have an network interface configured /etc/hosts may look like:
>
> 127.0.0.1       localhost
> ::1                  localhost6
> 10.0.0.50       host.domain.example        host
>
> and
>
> HOSTNAME=host.domain.example
>
> in /etc/sysconfig/network
>

I'm curious - I have a local 192.168.x.x subnet inside my firewall
that I would like to give a name other than just "localdomain."  Does
it matter what I use, or are their words/pieces I should avoid?  This
is strictly for my internal subnet, not visible to the outside world
at all.

Thanks.

mhr



More information about the CentOS mailing list