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

How to check connectivity/network speed of your VPS

If you concerned about network speed of your vps you can test it by downloading some test...

FreePBX

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

Sendmail [25: Connection refused] fix

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

Security tips for Linux server

1. Use only  strong passwords for all accounts , especially for root. Always use a secure root...

Backup script sample

#!/bin/bash echo "packing files in progress..." tar -cf /home/backup/root_lib-$(date...