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

Create OpenVPN client

The following instructions are for those VPSGet customers who have installed OpenVPN...

Pptpd on Centos 6

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

Oracle 11g EX on Centos 6 x64 vps

We describe how to install Oracle 11g Express on Centos 6 x86_64 Openvz VPS. First of all you...

CSF

ConfigServer Security & Firewall (CSF) is a powerful iptables configuration tool....

OpenVPN Access Server

§  Install OpenVPN Access Server Be sure that you are using a clean system and no...