Linux-hosts

hosts文件
/etc/hosts

OS	hosts (path)	使其生效,命令行执行
Windows (C:\Windows\System32\drivers\etc\hosts)	>ipconfig /flushdns 
Linux	(/etc/hosts)	$sudo systemctl restart NetworkManager 
Mac	(/etc/hosts)	$sudo killall -HUP mDNSResponder 
iOS	(/etc/hosts)
Android	(/etc/hosts)

手机直接重新启动一下即可
(稍老的linux版本)sudo rcnscd restart

DNS配置文件
/etc/resolv.conf

域名相关的优先级设定
/etc/nsswitch.conf

纯文本文件,公认的常用端口号及服务名称
/etc/services

协议列表
/etc/protocols

hosts文件下载
https://github.com/googlehosts/hosts
http://ppt.chnlib.com/other/hosts.html