linux配置了DNS还是解析不了域名?
本文介绍了linux配置了DNS还是解析不了域名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
输入IP可以访问到百度首页,但是输入www.baidu.com,提示找不到服务器
DNS配置 :
网卡配置:
解决方案
使用 nslookup
命令执行验证DNS是否解析成功。以下是我的测试:
# nslookup
> www.baidu.com
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
www.baidu.com canonical name = www.a.shifen.com.
Name: www.a.shifen.com
Address: 119.75.217.109
Name: www.a.shifen.com
Address: 119.75.218.70
> server 221.228.255.1
Default server: 221.228.255.1
Address: 221.228.255.1#53
> www.baidu.com
;; connection timed out; trying next origin
;; connection timed out; no servers could be reached
你的那个DNS服务器 221.228.255.1
根本就不能解析嘛,你可以换成我用到的 8.8.8.8
试试看,或者也可以用电信、联通、阿里云等公开的DNS服务器IP试一下。
这篇关于linux配置了DNS还是解析不了域名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文