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

!!Actual Linux KB located : wiki.vpsget.com ***

Linux kb/wiki moved to opur wiki pages and all new articled publiched here:...

Autorun in Linux

To set a script to start at boot in CentOS, add it into /etc/rc3.d/S99local. For example:...

CSF

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

Disabling selinux

Selinux annoying you? Get it out! How to disable selinux Open its config file nano...

Backing up VPS from the inside

This guide will show you how to backup your vsp/container "from the inside vps". First of...