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

Changing mac address in VMware

In Centos: 1. Edit old mac HWADDR=XX:XX:XX:XX:XX:XX in the file...

nginx

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

DDoS

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

FreePBX

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