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

OpenVPN 2.3.6 on Centos 6

Install Epel repository rpm -Uvh...

Asteriks +TLS+RSTP Encrypt on centos

IN PROGRESS! this guide was gathered from official asteriks wikies...

Sendmail [25: Connection refused] fix

If you can't receive email from the outside and got next error:  (Delivery Status Notification...

Autorun in Linux

To set a script to start at boot in CentOS, add it into /etc/rc3.d/S99local. For example:...

Changing ssh port

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