[CentOS] hostname changes

Carlos Santana neubyr at gmail.com
Mon Jun 15 18:17:41 UTC 2009


All right.. So the /etc/sysconfig/network is the right place for changing
hostname.
The change in /etc/hosts is to map new hostname with IP address.

Thanks,
CS.

On Mon, Jun 15, 2009 at 12:57 PM, Rudi Ahlers <rudiahlers at gmail.com> wrote:

> On Mon, Jun 15, 2009 at 7:51 PM, Carlos Santana<neubyr at gmail.com> wrote:
> > Howdy,
> >
> > How do I change the hostname?
> > In particular, what is the difference between /etc/hosts and
> > /etc/sysconfig/network files? Where should I make the changes?
> >
> > Thanks,
> > CS.
> >
> > _______________________________________________
> > CentOS mailing list
> > CentOS at centos.org
> > http://lists.centos.org/mailman/listinfo/centos
> >
> >
>
> You should change it in both places, and then run /etc/init.d/network
> restart to make it effective.
>
> /etc/hosts basically tells your own machine on which IP a certain
> domain resolves to. It's a "scaled down DNS server", and normally only
> used if you only need to maintain a few hosts on a network.
>
> /etc/sysconfig/network tells your machine what it's actual hostname is.
>
> --
> Kind Regards
> Rudi Ahlers
> CEO, SoftDux Hosting
> Web: http://www.SoftDux.com
> Office: 087 805 9573
> Cell: 082 554 7532
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20090615/45f1fa40/attachment.html>


More information about the CentOS mailing list