AIOps 一场颠覆传统运维的盛筵
930
2023-02-11
dnsyo检查域名在DNS服务器上的解析情况
Dnsyo是一个命令行DNS检测工具,能够在多达1500个不同网络的开放DNS服务器上进行查询。在做了DNS变更的时候用来检查DNS生效或排查DNS设置的时候是非常有用的。
Dnsyo每两周更新一次DNS服务器记录数据库,在运行dnsyo命令时,下载resolver-list.yml文件并将其存储到〜/.dnsyo-resolvers-list.yaml文件。
如果你知道更多的DNS服务器地址可以随意将它们添加到resolver-list-source.yml文件,也可以指定自定义的DNS地址列表文件。
Dnsyo安装
1 | pip install dnsyo--upgrade |
Dnsyo使用
Dnsyo语法
Dnsyo使用实例
用100个线程同时查询所有DNS服务器上的结果。
使用--simple选项采用简单的输出模式,对于UNIX脚本是非常有用的。
使用--extended选项查询结果更加详细,包含其查询的服务器的名称和地址。这里就不展示了。
Dnsyo指定DNS地址列表
下面以dns.ip.cn返回的DNS地址,来做个DNS列表。-dns-list.yaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 | -country:CN ip:114.114.114.114 provider:114DNS reverse:114DNS -country:CN ip:114.114.115.115 provider:114DNS reverse:114DNS -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 |
然后使用该列表进行检测
注意:这里需要将/usr/bin/dnsyo文件改改以处理中文。
否则会报一下错误:UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)
发表评论
评论列表