修改完/etc/hosts 后, 如果ping www.xxx.com 没有得到预计的IP,甩上三板斧即可解决:
1.ping www.xxx.com
2.service dnsmasq restart
3.dig www.xxx.com
本文介绍了解决/etc/hosts文件配置后无法获得预期IP地址的问题。提供了三步解决方案:首先确认ping命令的结果,然后重启dnsmasq服务,最后使用dig命令进行DNS查询。
修改完/etc/hosts 后, 如果ping www.xxx.com 没有得到预计的IP,甩上三板斧即可解决:
1.ping www.xxx.com
2.service dnsmasq restart
3.dig www.xxx.com

被折叠的 条评论
为什么被折叠?