/etc/hosts
192.168.1.10 www.example.com
(2) /etc/resolv.conf文件,若本地缓存和hosts文件无匹配项,系统会根据此文件配置的DNS服务器进行查询
/etc/resolv.conf
nameserver 114.114.114.114