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

Sendmail [25: Connection refused] fix

If you can't receive email from the outside and got next error:  (Delivery Status Notification...

Create OpenVPN client

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

FTP

 First of all make sure you have the ports 20-21 opened in your firewall. If not, you...

Epel Centos

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

Disabling selinux

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