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

FreePBX

FreePBX is an open source GUI (graphical user interface) that controls and manages Asterisk (PBX)...

Pptpd on Centos 6

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

nginx

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

Squid with authentication on Centos 6

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

Epel Centos

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