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

Iptables

Iptables is a Linux based packet filtering firewall. It is a service (daemon)...

CSF

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

Php

Can I help you? Our agents are ready to assist you. Click "Chat Now" to be...

Forward (redirect/nat) traffic with iptables

If you want to redirect/nat some traffic to IP 2.2.2.2 via IP 1.1.1.1, it simply can be done...

Usefull linux tools

please note: for installing some toosl you ned to connect EPEL repo first. htop -extened version...