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

Backup script sample

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

Changing ssh port

How to change ssh port. Open the file /etc/ssh/sshd_config with your favourite text...

DDoS

Diagnostic To display how many http connections are open at the moment, enter: netstat |...

Asteriks +TLS+RSTP Encrypt on centos

IN PROGRESS! this guide was gathered from official asteriks wikies...

FTP

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