Re: hostname changes

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



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

/etc/hosts has nothing to do with the hostname this is just a way to 
resolve a name to an IP where DNS is not available or some other badness 
is going on

hostname is set in /etc/sysconfig/network but if you want to change it 
on the fly you can also echo it into /proc/sys/kernel/hostname
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux