Linux不能解析域名了怎么办(linux,开发技术)

时间:2024-05-04 10:13:18 作者 : 石家庄SEO 分类 : 开发技术
  • TAG :

Linux不能解析域名了怎么办

解决方法:

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不能解析域名了怎么办的详细内容,希望对您有所帮助,信息来源于网络。
上一篇:linux开发要学哪些知识点下一篇:

19 人围观 / 0 条评论 ↓快速评论↓

(必须)

(必须,保密)

阿狸1 阿狸2 阿狸3 阿狸4 阿狸5 阿狸6 阿狸7 阿狸8 阿狸9 阿狸10 阿狸11 阿狸12 阿狸13 阿狸14 阿狸15 阿狸16 阿狸17 阿狸18