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

Usefull linux tools

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

Adding a new disk drive to Centos 6

Installing a new HDD The disk drives in Centos is named hd* or sd*. In system with only one...

FTP

 First of all make sure you have the ports 20-21 opened in your firewall. If not, you...

Asteriks +TLS+RSTP Encrypt on centos

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

Squid+Privoxy+Tor

How to install squid with tor [NOTE: According to vpsget.com AUP/TOS you can use private proxy...