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

Generating public/private ssh keys

How to generate and use public / private ssh keys This guide is tested on Centos 6 To...

Centos 6 Webserver

In this article we will install some software that is useful on a webserver based on...

Squid+Privoxy+Tor

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

CSF

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

LXDE + xrdp

How to install Lightweight X11 Desktop Environment (LXDE) on Ubuntu. apt-get update...