该文件指定如何解析主机名
cat /etc/host.conf
order hosts, bind
multi on
- order bind,hosts 指定主机名查询顺序,这里规定先使用 DNS 来解析域名,然后再查询
/etc/hosts
文件(也可以相反) - multi on 指
/etc/hosts
文件中的主机可以有多个地址 - nospoof on 指不允许对该服务器进行IP地址欺骗
该文件指定如何解析主机名
cat /etc/host.conf
order hosts, bind
multi on
/etc/hosts
文件(也可以相反)/etc/hosts
文件中的主机可以有多个地址