Set hostname

Set host name on Centos:

/etc/sysconfig/network

 

HOSTNAME="mycomputer"


/etc/hosts wrote:

127.0.0.1 mycomputer.mydomain.local mycomputer

 

check it with

hostname 
hostname --fqdn
hostname -a

 

Was this answer helpful?

 Print this Article

Also Read

Pptpd on Centos 6

How to install pptpd server on Centos 6 NOTE than pptpd is potentially unsecure and the tunnel...

Epel Centos

Some packages are missing from the base repository. This guide shows how to install RHEL EPEL...

Usefull linux tools

please note: for installing some toosl you ned to connect EPEL repo first. htop -extened version...

Squid with authentication on Centos 6

How to install Squid with authentication on Centos 6 >>Get VPS with current...

How to check connectivity/network speed of your VPS

If you concerned about network speed of your vps you can test it by downloading some test...