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
Post a Comment