Linux下hosts,host.conf,resolv.conf的区别
Linux下这三个文件都位于 /etc/目录下,在这里区分一下
1.hosts文件.
和Windows系统下的host的文件相类似,就是一个文本文件,里面存放一些IP和域名的对应关系。
2.host.conf. #解析器查询顺序配置文件
例:cat < /etc/host.conf 
multi on
order hosts,bind
order hosts bind 表示先查询本地hosts文件,如果没有结果,再尝试查找BIND dns服务器。
3. resolv.conf
配置Linux系统DNS服务器的配置文件:
cat < /etc/resolv.conf
nameserver *****
nameserver *****
相关推荐
  Antech    2020-04-20  
   Jaystrong    2020-08-02  
   gaogaorimu    2020-07-18  
   FanErZong    2020-07-18  
   liwf    2020-07-09  
   thatway    2020-06-28  
   糊一笑    2020-06-27  
   tangjianft    2020-06-25  
   86284851    2020-06-16  
   LUOPING0    2020-06-16  
   sshong    2020-06-12  
   wys    2020-06-10  
   mmyCSDN    2020-05-28  
   fanhuasijin    2020-05-28  
 