Linux不能解析域名了怎么办
导读:本文共877.5字符,通常情况下阅读需要3分钟。同时您也可以点击右侧朗读,来听本文内容。按键盘←(左) →(右) 方向键可以翻页。
摘要: 解决方法:1、查看/etc/hosts #cat/etc/hosts 127.0.0.1localhostlocalhost.localdomainlocalhost4localhost4.localdomain4 ::1localhostlocalhost.localdomainlocalhost6localhost6.localdomain6 192.168... ...
音频解说
目录
(为您整理了一些要点),点击可以直达。解决方法:
1、查看/etc/hosts
#cat/etc/hosts 127.0.0.1localhostlocalhost.localdomainlocalhost4localhost4.localdomain4 ::1localhostlocalhost.localdomainlocalhost6localhost6.localdomain6 192.168.1.3gus.xxxxxxxx.com
2、查看/etc/host.conf
#cat/etc/host.conf orderhosts,bind multion
3、查看/etc/resolv.conf
#cat/etc/resolv.confsearchlocaldomain #nameserver8.8.4.4 nameserver8.8.8.8
初始使用的是 “nameserver 8.8.4.4”,导致域名解析错误,后来改为”nameserver 8.8.8.8″就可以正常解析了
#pinggus.xxxxxxxx.com PINGgus.xxxxxxxx.com(192.168.1.3)56(84)bytesofdata. 64bytesfromec192-168-1-3.ap-northeast-2.compute.amazonaws.com(192.168.1.3):icmp_seq=1ttl=39time=458ms
</div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
本文:
Linux不能解析域名了怎么办的详细内容,希望对您有所帮助,信息来源于网络。