Linux hostname

/etc/sysconfig/network: set the hostname of the machine
 
/etc/hosts: set the local resolve
 
/etc/resolv.conf: set the DNS server IP address
 
/etc/nsswitch.conf: set the resolve sequence
Example
hosts: files dns
first check the /etc/hosts, then check /etc/resolv.conf
 

 

Comments

Popular posts from this blog

Nginx Proxy & Load Balance & LNMP

Snort+barnyard2+Snorby CentOS 6.5_64 Installation

ORACLE Error