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

DDoS

Diagnostic To display how many http connections are open at the moment, enter: netstat |...

LXDE + xrdp

How to install Lightweight X11 Desktop Environment (LXDE) on Ubuntu. apt-get update...

Changing ssh port

How to change ssh port. Open the file /etc/ssh/sshd_config with your favourite text...

nginx

How to install nginx on Centos Add nginx repo first. To add it, create the file...

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