β

dnsyo检查域名在DNS服务器上的解析情况

所属分类: Linux命令

Dnsyo是一个命令行DNS检测工具,能够在多达1500个不同网络的开放DNS服务器上进行查询。在做了DNS变更的时候用来检查DNS生效或排查DNS设置的时候是非常有用的。

项目地址: https://github.com/samarudge/dnsyo

Dnsyo每两周更新一次DNS服务器记录数据库,在运行dnsyo命令时,下载resolver-list.yml文件并将其存储到〜/.dnsyo-resolvers-list.yaml文件。

如果你知道更多的DNS服务器地址可以随意将它们添加到resolver-list-source.yml文件,也可以指定自定义的DNS地址列表文件。

Dnsyo安装

python 版本需要2.6以及以上版本。

pip install dnsyo --upgrade

Dnsyo使用

Dnsyo语法

# dnsyo -h
usage: dnsyo [options] domain [type]
Query lots of DNS servers and colate the results
positional arguments:
  domain                Domain to query
  type                  Record type (A, CNAME, MX, etc.)
optional arguments:
  -h, --help            show this help message and exit
  --resolverlist RESOLVERLIST
                        Location of the yaml resolvers list to download
                        (http/https)
  --resolverfile RESOLVERFILE
                        Location of the local yaml resolvers file
  --verbose, -v         Extended debug info
  --simple, -s          Simple output mode (good for UNIX parsing)
  --extended, -x        Extended output mode including server addresses
  --threads THREADS, -t THREADS
                        Number of worker threads to use
  --servers SERVERS, -q SERVERS
                        Maximum number of servers to query (or ALL)
  --country COUNTRY, -c COUNTRY
                        Query servers by two letter country code
  --update              Check the list for working servers
  --updateSummary UPDATESUMMARY
                        Location for the summary status of the update
  --updateDestination UPDATEDESTINATION
                        Destination resolver list for update
https://github.com/samarudge/dnsyo

Dnsyo使用实例

用100个线程同时查询所有DNS服务器上的结果。

#  dnsyo -t 100 -q ALL www.ttlsa.com
Status: Queried 1099 of 1099 servers, duration: 0:00:33.303160
 - RESULTS
I asked 1099 servers for A records related to www.ttlsa.com,
 responded with records and 719 gave errors
Here are the results;
 servers responded with;
.181.105.183
 servers responded with;
.76.247.183
 servers responded with;
.112.127.36
 servers responded with;
.162.54.144
 servers responded with;
.111.154.208
 servers responded with;
.29.8.170
 servers responded with;
.193.235.192
.193.235.222
.193.235.223
.193.235.224
.193.235.225
.193.235.226
.193.235.227
.193.235.243
 servers responded with;
.207.42.106
.207.42.107
.207.42.108
.207.42.109
.207.42.117
.207.42.118
.207.42.122
 servers responded with;
.238.232.206
 servers responded with;
.175.92.40
 servers responded with;
.82.136.200
 servers responded with;
.155.222.100
.155.222.101
.155.222.94
.155.222.95
.155.222.96
.155.222.97
.155.222.98
.155.222.99
 servers responded with;
.9.212.217
 servers responded with;
.16.223.29
 servers responded with;
.186.49.175
 servers responded with;
.131.204.39
 servers responded with;
.14.23.222
.14.23.223
.14.23.224
.14.23.225
.14.23.226
.14.23.227
.14.23.228
.14.23.229
 servers responded with;
.6.7.25
.6.7.26
.6.7.27
.6.7.28
.6.7.29
.6.7.30
.6.7.31
.6.7.32
 servers responded with;
.81.4.45
 servers responded with;
.232.157.92
 servers responded with;
.108.138.216
.108.138.225
.108.138.226
.108.138.227
.108.138.234
.108.138.235
.108.138.236
.108.138.253
 servers responded with;
.5.251.17
 servers responded with;
.140.245.29
 servers responded with;
.160.136.235
 servers responded with;
.157.21.189
.157.21.190
.157.21.191
.157.21.192
.157.21.195
.157.21.200
.157.21.220
.157.21.221
 servers responded with;
.192.89.130
 servers responded with;
.72.35.138
 servers responded with;
.72.94.217
.72.94.218
.72.94.219
.72.94.220
.72.94.221
.72.94.222
.72.94.234
.72.94.235
 servers responded with;
.221.30.46
 servers responded with;
.167.151.238
 servers responded with;
.97.231.108
 servers responded with;
.129.244.220
 servers responded with;
.29.8.170
.39.199.14
 servers responded with;
.155.222.100
 servers responded with;
.90.32.216
 servers responded with;
.227.164.190
And here are the errors;
 servers responded with;
No Nameservers
 servers responded with;
No Answer
 servers responded with;
Server Timeout

使用 --simple 选项采用简单的输出模式,对于UNIX脚本是非常有用的。

#  dnsyo -t 100 -q ALL www.ttlsa.com -s
INFO QUERIED 1099
INFO SUCCESS 382
INFO ERROR 717
RESULT 44 220.181.105.183
RESULT 19 121.9.212.217
RESULT 16 182.140.245.29
RESULT 5 202.97.231.108
RESULT 16 124.112.127.36
RESULT 45 222.186.49.175
RESULT 11 59.108.138.216|59.108.138.225|59.108.138.226|59.108.138.227|59.108.138.234|59.108.138.235|59.108.138.236|59.108.138.253
RESULT 3 124.238.232.206
RESULT 40 124.193.235.192|124.193.235.222|124.193.235.223|124.193.235.224|124.193.235.225|124.193.235.226|124.193.235.227|124.193.235.243
RESULT 51 61.155.222.100|61.155.222.101|61.155.222.94|61.155.222.95|61.155.222.96|61.155.222.97|61.155.222.98|61.155.222.99
RESULT 9 211.162.54.144
RESULT 17 117.131.204.39
RESULT 5 122.227.164.190
RESULT 14 124.14.23.222|124.14.23.223|124.14.23.224|124.14.23.225|124.14.23.226|124.14.23.227|124.14.23.228|124.14.23.229
RESULT 5 121.29.8.170
RESULT 16 125.76.247.183
RESULT 9 113.207.42.106|113.207.42.107|113.207.42.108|113.207.42.109|113.207.42.117|113.207.42.118|113.207.42.122
RESULT 4 122.72.94.217|122.72.94.218|122.72.94.219|122.72.94.220|122.72.94.221|122.72.94.222|122.72.94.234|122.72.94.235
RESULT 3 123.129.244.220
RESULT 8 171.111.154.208
RESULT 2 112.90.32.216
RESULT 1 223.82.136.200
RESULT 3 117.157.21.189|117.157.21.190|117.157.21.191|117.157.21.192|117.157.21.195|117.157.21.200|117.157.21.220|117.157.21.221
RESULT 5 117.175.92.40
RESULT 8 112.5.251.17
RESULT 2 120.192.89.130
RESULT 1 42.81.4.45
RESULT 6 122.72.35.138
RESULT 1 222.186.49.175|61.155.222.100|61.155.222.101|61.155.222.94|61.155.222.95|61.155.222.96|61.155.222.97|61.155.222.98|61.155.222.99
RESULT 3 27.221.30.46
RESULT 2 119.167.151.238
RESULT 3 124.232.157.92
RESULT 2 124.160.136.235
RESULT 1 217.16.223.29
RESULT 2 123.6.7.25|123.6.7.26|123.6.7.27|123.6.7.28|123.6.7.29|123.6.7.30|123.6.7.31|123.6.7.32
ERROR 123 No Nameservers
ERROR 45 No Answer
ERROR 548 Server Timeout
ERROR 1 NXDOMAIN

使用 --extended 选项查询结果更加详细,包含其查询的服务器的名称和地址。这里就不展示了。

Dnsyo指定DNS地址列表

下面以dns.ip.cn返回的DNS地址,来做个DNS列表。ttlsa-dns-list.yaml

- country: CN
  ip: 114.114.114.114
  provider: 114 DNS
  reverse: 114 DNS
- country: CN
  ip: 114.114.115.115
  provider: 114 DNS
  reverse: 114 DNS
- country: CN
  ip: 223.5.5.5
  provider: 阿里 AliDNS
  reverse: 阿里 AliDNS
- country: CN
  ip: 223.6.6.6
  provider: 阿里 AliDNS
  reverse: 阿里 AliDNS
- country: CN
  ip: 180.76.76.76
  provider: 百度 BaiduDNS
  reverse: 百度 BaiduDNS
- country: CN
  ip: 119.29.29.29
  provider: DNSPod DNS+
  reverse: DNSPod DNS+
- country: CN
  ip: 182.254.116.116
  provider: DNSPod DNS+
  reverse: DNSPod DNS+
- country: CN
  ip: 1.2.4.8
  provider: CNNIC SDNS
  reverse: CNNIC SDNS
- country: CN
  ip: 210.2.4.8
  provider: CNNIC SDNS
  reverse: CNNIC SDNS
- country: CN
  ip: 117.50.11.11
  provider: oneDNS
  reverse: oneDNS
- country: CN
  ip: 117.50.22.22
  provider: oneDNS
  reverse: oneDNS
- country: CN
  ip: 101.226.4.6
  provider: DNS派电信/移动/铁通
  reverse: DNS派电信/移动/铁通
- country: CN
  ip: 218.30.118.6
  provider: DNS派电信/移动/铁通
  reverse: DNS派电信/移动/铁通
- country: CN
  ip: 123.125.81.6
  provider: DNS派 联通
  reverse: DNS派 联通
- country: CN
  ip: 140.207.198.6
  provider: DNS派 联通
  reverse: DNS派 联通
- country: UN
  ip: 8.8.8.8
  provider: Google DNS
  reverse: Google DNS
- country: UN
  ip: 8.8.4.4
  provider: Google DNS
  reverse: Google DNS
- country: CN
  ip: 9.9.9.9
  provider: IBM Quad9
  reverse: IBM Quad9
- country: CN
  ip: 208.67.222.222
  provider: OpenDNS
  reverse: OpenDNS
- country: CN
  ip: 208.67.220.220
  provider: OpenDNS
  reverse: OpenDNS
- country: CN
  ip: 199.91.73.222
  provider: V2EX DNS
  reverse: V2EX DNS
- country: CN
  ip: 178.79.131.110
  provider: V2EX DNS
  reverse: V2EX DNS
- country: CN
  ip: 61.132.163.68
  provider: 安徽电信 DNS
  reverse: 安徽电信 DNS
- country: CN
  ip: 202.102.213.68
  provider: 安徽电信 DNS
  reverse: 安徽电信 DNS
- country: CN
  ip: 219.141.136.10
  provider: 北京电信 DNS
  reverse: 北京电信 DNS
- country: CN
  ip: 219.141.140.10
  provider: 北京电信 DNS
  reverse: 北京电信 DNS
- country: CN
  ip: 61.128.192.68
  provider: 重庆电信 DNS
  reverse: 重庆电信 DNS
- country: CN
  ip: 61.128.128.68
  provider: 重庆电信 DNS
  reverse: 重庆电信 DNS
- country: CN
  ip: 218.85.152.99
  provider: 福建电信 DNS
  reverse: 福建电信 DNS
- country: CN
  ip: 218.85.157.99
  provider: 福建电信 DNS
  reverse: 福建电信 DNS
- country: CN
  ip: 202.100.64.68
  provider: 甘肃电信 DNS
  reverse: 甘肃电信 DNS
- country: CN
  ip: 61.178.0.93
  provider: 甘肃电信 DNS
  reverse: 甘肃电信 DNS
- country: CN
  ip: 202.96.128.86
  provider: 广东电信 DNS
  reverse: 广东电信 DNS
- country: CN
  ip: 202.96.128.166
  provider: 广东电信 DNS
  reverse: 广东电信 DNS
- country: CN
  ip: 202.96.134.33
  provider: 广东电信 DNS
  reverse: 广东电信 DNS
- country: CN
  ip: 202.96.128.68
  provider: 广东电信 DNS
  reverse: 广东电信 DNS
- country: CN
  ip: 202.103.225.68
  provider: 广西电信 DNS
  reverse: 广西电信 DNS
- country: CN
  ip: 202.103.224.68
  provider: 广西电信 DNS
  reverse: 广西电信 DNS
- country: CN
  ip: 202.98.192.67
  provider: 贵州电信 DNS
  reverse: 贵州电信 DNS
- country: CN
  ip: 202.98.198.167
  provider: 贵州电信 DNS
  reverse: 贵州电信 DNS
- country: CN
  ip: 222.88.88.88
  provider: 河南电信 DNS
  reverse: 河南电信 DNS
- country: CN
  ip: 222.85.85.85
  provider: 河南电信 DNS
  reverse: 河南电信 DNS
- country: CN
  ip: 219.147.198.230
  provider: 黑龙江电信
  reverse: 黑龙江电信
- country: CN
  ip: 219.147.198.242
  provider: 黑龙江电信
  reverse: 黑龙江电信
- country: CN
  ip: 202.103.24.68
  provider: 湖北电信 DNS
  reverse: 湖北电信 DNS
- country: CN
  ip: 202.103.0.68
  provider: 湖北电信 DNS
  reverse: 湖北电信 DNS
- country: CN
  ip: 222.246.129.80
  provider: 湖南电信 DNS
  reverse: 湖南电信 DNS
- country: CN
  ip: 59.51.78.211
  provider: 湖南电信 DNS
  reverse: 湖南电信 DNS
- country: CN
  ip: 218.2.2.2
  provider: 江苏电信 DNS
  reverse: 江苏电信 DNS
- country: CN
  ip: 218.4.4.4
  provider: 江苏电信 DNS
  reverse: 江苏电信 DNS
- country: CN
  ip: 61.147.37.1
  provider: 江苏电信 DNS
  reverse: 江苏电信 DNS
- country: CN
  ip: 218.2.135.1
  provider: 江苏电信 DNS
  reverse: 江苏电信 DNS
- country: CN
  ip: 202.101.224.69
  provider: 江西电信 DNS
  reverse: 江西电信 DNS
- country: CN
  ip: 202.101.226.68
  provider: 江西电信 DNS
  reverse: 江西电信 DNS
- country: CN
  ip: 219.148.162.31
  provider: 内蒙古电信
  reverse: 内蒙古电信
- country: CN
  ip: 222.74.39.50
  provider: 内蒙古电信
  reverse: 内蒙古电信
- country: CN
  ip: 219.146.1.66
  provider: 山东电信 DNS
  reverse: 山东电信 DNS
- country: CN
  ip: 219.147.1.66
  provider: 山东电信 DNS
  reverse: 山东电信 DNS
- country: CN
  ip: 218.30.19.40
  provider: 陕西电信 DNS
  reverse: 陕西电信 DNS
- country: CN
  ip: 61.134.1.4
  provider: 陕西电信 DNS
  reverse: 陕西电信 DNS
- country: CN
  ip: 202.96.209.133
  provider: 上海电信 DNS
  reverse: 上海电信 DNS
- country: CN
  ip: 116.228.111.118
  provider: 上海电信 DNS
  reverse: 上海电信 DNS
- country: CN
  ip: 202.96.209.5
  provider: 上海电信 DNS
  reverse: 上海电信 DNS
- country: CN
  ip: 108.168.255.118
  provider: 上海电信 DNS
  reverse: 上海电信 DNS
- country: CN
  ip: 61.139.2.69
  provider: 四川电信 DNS
  reverse: 四川电信 DNS
- country: CN
  ip: 218.6.200.139
  provider: 四川电信 DNS
  reverse: 四川电信 DNS
- country: CN
  ip: 219.150.32.132
  provider: 天津电信 DNS
  reverse: 天津电信 DNS
- country: CN
  ip: 219.146.0.132
  provider: 天津电信 DNS
  reverse: 天津电信 DNS
- country: CN
  ip: 222.172.200.68
  provider: 云南电信 DNS
  reverse: 云南电信 DNS
- country: CN
  ip: 61.166.150.123
  provider: 云南电信 DNS
  reverse: 云南电信 DNS
- country: CN
  ip: 202.101.172.35
  provider: 浙江电信 DNS
  reverse: 浙江电信 DNS
- country: CN
  ip: 61.153.177.196
  provider: 浙江电信 DNS
  reverse: 浙江电信 DNS
- country: CN
  ip: 61.153.81.75
  provider: 浙江电信 DNS
  reverse: 浙江电信 DNS
- country: CN
  ip: 60.191.244.5
  provider: 浙江电信 DNS
  reverse: 浙江电信 DNS
- country: CN
  ip: 123.123.123.123
  provider: 北京联通 DNS
  reverse: 北京联通 DNS
- country: CN
  ip: 123.123.123.124
  provider: 北京联通 DNS
  reverse: 北京联通 DNS
- country: CN
  ip: 202.106.0.20
  provider: 北京联通 DNS
  reverse: 北京联通 DNS
- country: CN
  ip: 202.106.195.68
  provider: 北京联通 DNS
  reverse: 北京联通 DNS
- country: CN
  ip: 221.5.203.98
  provider: 重庆联通 DNS
  reverse: 重庆联通 DNS
- country: CN
  ip: 221.7.92.98
  provider: 重庆联通 DNS
  reverse: 重庆联通 DNS
- country: CN
  ip: 210.21.196.6
  provider: 广东联通 DNS
  reverse: 广东联通 DNS
- country: CN
  ip: 221.5.88.88
  provider: 广东联通 DNS
  reverse: 广东联通 DNS
- country: CN
  ip: 202.99.160.68
  provider: 河北联通 DNS
  reverse: 河北联通 DNS
- country: CN
  ip: 202.99.166.4
  provider: 河北联通 DNS
  reverse: 河北联通 DNS
- country: CN
  ip: 202.102.224.68
  provider: 河南联通 DNS
  reverse: 河南联通 DNS
- country: CN
  ip: 202.102.227.68
  provider: 河南联通 DNS
  reverse: 河南联通 DNS
- country: CN
  ip: 202.97.224.69
  provider: 黑龙江联通
  reverse: 黑龙江联通
- country: CN
  ip: 202.97.224.68
  provider: 黑龙江联通
  reverse: 黑龙江联通
- country: CN
  ip: 202.98.0.68
  provider: 吉林联通 DNS
  reverse: 吉林联通 DNS
- country: CN
  ip: 202.98.5.68
  provider: 吉林联通 DNS
  reverse: 吉林联通 DNS
- country: CN
  ip: 221.6.4.66
  provider: 江苏联通 DNS
  reverse: 江苏联通 DNS
- country: CN
  ip: 221.6.4.67
  provider: 江苏联通 DNS
  reverse: 江苏联通 DNS
- country: CN
  ip: 202.99.224.68
  provider: 内蒙古联通
  reverse: 内蒙古联通
- country: CN
  ip: 202.99.224.8
  provider: 内蒙古联通
  reverse: 内蒙古联通
- country: CN
  ip: 202.102.128.68
  provider: 山东联通 DNS
  reverse: 山东联通 DNS
- country: CN
  ip: 202.102.152.3
  provider: 山东联通 DNS
  reverse: 山东联通 DNS
- country: CN
  ip: 202.102.134.68
  provider: 山东联通 DNS
  reverse: 山东联通 DNS
- country: CN
  ip: 202.102.154.3
  provider: 山东联通 DNS
  reverse: 山东联通 DNS
- country: CN
  ip: 202.99.192.66
  provider: 山西联通 DNS
  reverse: 山西联通 DNS
- country: CN
  ip: 202.99.192.68
  provider: 山西联通 DNS
  reverse: 山西联通 DNS
- country: CN
  ip: 221.11.1.67
  provider: 陕西联通 DNS
  reverse: 陕西联通 DNS
- country: CN
  ip: 221.11.1.68
  provider: 陕西联通 DNS
  reverse: 陕西联通 DNS
- country: CN
  ip: 210.22.70.3
  provider: 上海联通 DNS
  reverse: 上海联通 DNS
- country: CN
  ip: 210.22.84.3
  provider: 上海联通 DNS
  reverse: 上海联通 DNS
- country: CN
  ip: 119.6.6.6
  provider: 四川联通 DNS
  reverse: 四川联通 DNS
- country: CN
  ip: 124.161.87.155
  provider: 四川联通 DNS
  reverse: 四川联通 DNS
- country: CN
  ip: 202.99.104.68
  provider: 天津联通 DNS
  reverse: 天津联通 DNS
- country: CN
  ip: 202.99.96.68
  provider: 天津联通 DNS
  reverse: 天津联通 DNS
- country: CN
  ip: 221.12.1.227
  provider: 浙江联通 DNS
  reverse: 浙江联通 DNS
- country: CN
  ip: 221.12.33.227
  provider: 浙江联通 DNS
  reverse: 浙江联通 DNS
- country: CN
  ip: 202.96.69.38
  provider: 辽宁联通 DNS
  reverse: 辽宁联通 DNS
- country: CN
  ip: 202.96.64.68
  provider: 辽宁联通 DNS
  reverse: 辽宁联通 DNS
- country: CN
  ip: 221.131.143.69
  provider: 江苏移动 DNS
  reverse: 江苏移动 DNS
- country: CN
  ip: 112.4.0.55
  provider: 江苏移动 DNS
  reverse: 江苏移动 DNS
- country: CN
  ip: 211.138.180.2
  provider: 安徽移动 DNS
  reverse: 安徽移动 DNS
- country: CN
  ip: 211.138.180.3
  provider: 安徽移动 DNS
  reverse: 安徽移动 DNS
- country: CN
  ip: 218.201.96.130
  provider: 山东移动 DNS
  reverse: 山东移动 DNS
- country: CN
  ip: 211.137.191.26
  provider: 山东移动 DNS
  reverse: 山东移动 DNS

然后使用该列表进行检测

# dnsyo --resolverfile /root/ttlsa-dns-list.yaml www.ttlsa.com -x
 - RESULTS
I asked 118 servers for A records related to www.ttlsa.com,
 responded with records and 79 gave errors
Here are the results;
The following servers
 - 223.5.5.5 (阿里 AliDNS - CN)
 - 223.6.6.6 (阿里 AliDNS - CN)
responded with;
.111.154.208
The following servers
 - 180.76.76.76 (百度 BaiduDNS - CN)
 - 202.106.0.20 (北京联通 DNS - CN)
responded with;
.29.8.170
The following servers
 - 202.98.192.67 (贵州电信 DNS - CN)
 - 222.172.200.68 (云南电信 DNS - CN)
 - 61.166.150.123 (云南电信 DNS - CN)
responded with;
.140.245.29
The following servers
 - 202.102.152.3 (山东联通 DNS - CN)
responded with;
.129.244.220
The following servers
 - 114.114.114.114 (114 DNS - CN)
 - 202.101.224.69 (江西电信 DNS - CN)
 - 116.228.111.118 (上海电信 DNS - CN)
 - 178.79.131.110 (V2EX DNS - CN)
 - 9.9.9.9 (IBM Quad9 - CN)
responded with;
.155.222.100
.155.222.101
.155.222.94
.155.222.95
.155.222.96
.155.222.97
.155.222.98
.155.222.99
The following servers
 - 202.96.209.133 (上海电信 DNS - CN)
responded with;
.186.49.175
.155.222.100
.155.222.101
.155.222.94
.155.222.95
.155.222.96
.155.222.97
.155.222.98
.155.222.99
The following servers
 - 210.22.70.3 (上海联通 DNS - CN)
 - 202.102.134.68 (山东联通 DNS - CN)
 - 210.22.84.3 (上海联通 DNS - CN)
 - 202.102.154.3 (山东联通 DNS - CN)
responded with;
.167.151.238
The following servers
 - 202.103.24.68 (湖北电信 DNS - CN)
responded with;
.232.157.92
The following servers
 - 1.2.4.8 (CNNIC SDNS - CN)
responded with;
.29.8.170
.39.199.14
The following servers
 - 219.141.136.10 (北京电信 DNS - CN)
 - 219.141.140.10 (北京电信 DNS - CN)
 - 117.50.22.22 (oneDNS - CN)
 - 117.50.11.11 (oneDNS - CN)
responded with;
.181.105.183
The following servers
 - 114.114.115.115 (114 DNS - CN)
 - 202.101.226.68 (江西电信 DNS - CN)
responded with;
.186.49.175
The following servers
 - 210.2.4.8 (CNNIC SDNS - CN)
responded with;
.5.251.17
The following servers
 - 208.67.222.222 (OpenDNS - CN)
responded with;
.14.23.222
.14.23.223
.14.23.224
.14.23.225
.14.23.226
.14.23.227
.14.23.228
.14.23.229
The following servers
 - 208.67.220.220 (OpenDNS - CN)
responded with;
.193.235.192
.193.235.222
.193.235.223
.193.235.224
.193.235.225
.193.235.226
.193.235.227
.193.235.243
The following servers
 - 119.29.29.29 (DNSPod DNS+ - CN)
 - 140.207.198.6 (DNS派 联通 - CN)
 - 182.254.116.116 (DNSPod DNS+ - CN)
 - 123.125.81.6 (DNS派 联通 - CN)
 - 218.30.118.6 (DNS派电信/移动/铁通 - CN)
 - 101.226.4.6 (DNS派电信/移动/铁通 - CN)
 - 8.8.4.4 (Google DNS - UN)
 - 8.8.8.8 (Google DNS - UN)
responded with;
.9.212.217
The following servers
 - 219.150.32.132 (天津电信 DNS - CN)
responded with;
.81.4.45
The following servers
 - 202.102.128.68 (山东联通 DNS - CN)
responded with;
.221.30.46
And here are the errors;
The following servers
 - 221.11.1.68 (陕西联通 DNS - CN)
 - 202.99.224.8 (内蒙古联通 - CN)
 - 202.97.224.69 (黑龙江联通 - CN)
 - 211.138.180.3 (安徽移动 DNS - CN)
 - 202.99.224.68 (内蒙古联通 - CN)
 - 202.96.69.38 (辽宁联通 DNS - CN)
 - 202.97.224.68 (黑龙江联通 - CN)
 - 221.11.1.67 (陕西联通 DNS - CN)
 - 202.96.64.68 (辽宁联通 DNS - CN)
 - 202.103.0.68 (湖北电信 DNS - CN)
 - 211.138.180.2 (安徽移动 DNS - CN)
responded with;
No Nameservers
The following servers
 - 219.147.198.230 (黑龙江电信 - CN)
 - 222.85.85.85 (河南电信 DNS - CN)
 - 221.12.1.227 (浙江联通 DNS - CN)
 - 202.99.160.68 (河北联通 DNS - CN)
 - 221.6.4.66 (江苏联通 DNS - CN)
 - 60.191.244.5 (浙江电信 DNS - CN)
 - 202.96.128.166 (广东电信 DNS - CN)
 - 59.51.78.211 (湖南电信 DNS - CN)
 - 218.2.135.1 (江苏电信 DNS - CN)
 - 202.98.5.68 (吉林联通 DNS - CN)
 - 218.4.4.4 (江苏电信 DNS - CN)
 - 202.101.172.35 (浙江电信 DNS - CN)
 - 61.153.81.75 (浙江电信 DNS - CN)
 - 219.148.162.31 (内蒙古电信 - CN)
 - 202.96.128.68 (广东电信 DNS - CN)
 - 202.102.227.68 (河南联通 DNS - CN)
 - 221.6.4.67 (江苏联通 DNS - CN)
 - 219.146.0.132 (天津电信 DNS - CN)
 - 219.147.1.66 (山东电信 DNS - CN)
 - 218.85.152.99 (福建电信 DNS - CN)
 - 218.6.200.139 (四川电信 DNS - CN)
 - 199.91.73.222 (V2EX DNS - CN)
 - 202.103.225.68 (广西电信 DNS - CN)
 - 222.74.39.50 (内蒙古电信 - CN)
 - 221.7.92.98 (重庆联通 DNS - CN)
 - 61.132.163.68 (安徽电信 DNS - CN)
 - 202.99.192.66 (山西联通 DNS - CN)
 - 202.96.209.5 (上海电信 DNS - CN)
 - 218.85.157.99 (福建电信 DNS - CN)
 - 202.98.198.167 (贵州电信 DNS - CN)
 - 124.161.87.155 (四川联通 DNS - CN)
 - 61.128.128.68 (重庆电信 DNS - CN)
 - 202.100.64.68 (甘肃电信 DNS - CN)
 - 202.102.213.68 (安徽电信 DNS - CN)
 - 218.30.19.40 (陕西电信 DNS - CN)
 - 202.99.192.68 (山西联通 DNS - CN)
 - 218.201.96.130 (山东移动 DNS - CN)
 - 61.147.37.1 (江苏电信 DNS - CN)
 - 218.2.2.2 (江苏电信 DNS - CN)
 - 123.123.123.124 (北京联通 DNS - CN)
 - 61.178.0.93 (甘肃电信 DNS - CN)
 - 61.128.192.68 (重庆电信 DNS - CN)
 - 211.137.191.26 (山东移动 DNS - CN)
 - 221.5.203.98 (重庆联通 DNS - CN)
 - 219.146.1.66 (山东电信 DNS - CN)
 - 61.153.177.196 (浙江电信 DNS - CN)
 - 202.96.128.86 (广东电信 DNS - CN)
 - 61.134.1.4 (陕西电信 DNS - CN)
 - 221.5.88.88 (广东联通 DNS - CN)
 - 123.123.123.123 (北京联通 DNS - CN)
 - 222.246.129.80 (湖南电信 DNS - CN)
 - 222.88.88.88 (河南电信 DNS - CN)
 - 112.4.0.55 (江苏移动 DNS - CN)
 - 202.99.96.68 (天津联通 DNS - CN)
 - 202.106.195.68 (北京联通 DNS - CN)
 - 202.103.224.68 (广西电信 DNS - CN)
 - 219.147.198.242 (黑龙江电信 - CN)
 - 202.102.224.68 (河南联通 DNS - CN)
 - 202.99.166.4 (河北联通 DNS - CN)
 - 221.12.33.227 (浙江联通 DNS - CN)
 - 221.131.143.69 (江苏移动 DNS - CN)
 - 202.98.0.68 (吉林联通 DNS - CN)
 - 108.168.255.118 (上海电信 DNS - CN)
 - 202.96.134.33 (广东电信 DNS - CN)
 - 210.21.196.6 (广东联通 DNS - CN)
 - 119.6.6.6 (四川联通 DNS - CN)
 - 61.139.2.69 (四川电信 DNS - CN)
 - 202.99.104.68 (天津联通 DNS - CN)
responded with;
Server Timeout

注意:这里需要将/usr/bin/dnsyo文件改改以处理中文。

dnsyo

否则会报一下错误:UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)

weinxin
微信公众号
扫一扫关注运维生存时间公众号,获取最新技术文章~
作者:运维生存时间 - 运维生存时间
Linux系统教程,运维经验分享
原文地址:dnsyo检查域名在DNS服务器上的解析情况, 感谢原作者分享。

发表评论