我正在使用nslookup,并试图找出权威性和非权威性响应的差异。 这两个响应似乎是一致的(如果多次运行该命令,它们会给出相同的答案)。 正常nslookup调用 $ nslookup google.com Server: 192.168.1.1 Address: 192.168.1.1#53 Non-authoritative answer: Name: google.com Address: 72.14.213.104 Name: google.com Address: 72.14.213.105 Name: google.com Address: 72.14.213.106 Name: google.com Address: 72.14.213.147 Name: google.com Address: 72.14.213.99 Name: google.com Address: 72.14.213.103 Nslookup使用谷歌的权威服务器 $ nslookup google.com ns1.google.com Server: ns1.google.com Address: 216.239.32.10#53 Name: google.com Address: 74.125.225.19 Name: google.com Address: 74.125.225.20 Name: google.com […]
请参阅上面的图片,描述google.com和www.google.com不同结果。 任何想法为什么nslookup是这样的行为?
我正在使用Windows 10,例如,我想要获取站点achab.it的MX服务器。 询问nslookup -type=mx achab.it ,我期待得到: Server: anyres1.fastwebnet.it Address: 62.101.93.101 Non-authoritative answer: achab.it MX preference = 10, mail exchanger = mail.achab.it achab.it MX preference = 20, mail exchanger = mail2.achab.it 或类似的东西。 相反,我得到: Server: anyres1.fastwebnet.it Address: 62.101.93.101 Non-authoritative answer: achab.it.fastwebnet.it MX preference = 10, mail exchanger = mx2.fastwebnet.it achab.it.fastwebnet.it MX preference = 10, mail exchanger = […]
所以,如果我使用挖进行反向查找,我会得到: $ dig 71.74.56.122 ; <<>> DiG 9.6.0-APPLE-P2 <<>> 71.74.56.122 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41277 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;71.74.56.122. IN A ;; ANSWER SECTION: 71.74.56.122. 655360 IN A 71.74.56.122 使用nslookup,我得到: $ nslookup […]
所以我在主机文件上为某个公共IP地址设置了公共IP,但它从任何地方或从DNS获取私有IP。 Content of windows hosts file C:\Windows\System32\drivers\etc\Hosts 210.210.210.10 my.domain.com nslookup my.domain.com 10.10.10.10 10.10.10.11 10.10.10.12 我希望它parsing为我在文件中分配的公有IP,而不是在查找my.publicdomain.com时显示的私有IP。 有任何解决这个问题的方法吗? 有没有人遇到这样的问题? ipconfig / flushdns没有帮助。 只是说。
在试图访问http://www.nanog.org/时 ,错误地input了www.nanog.com并登陆到了localhost。 urlwww.nanog.com以某种方式解决localhost,甚至与谷歌的DNS服务器。 为了好奇,有没有人有任何想法为什么www.nanog.com解决localhost? C:\ Windows \ System32> nslookup www.nanog.com 8.8.8.8服务器:google-public-dns-a.google.com地址:8.8.8.8 非权威的回答:姓名:www.nanog.com地址:127.0.0.1 C:\ Windows \ System32> nslookup www.nonexistingwebsite.com 8.8.8.8服务器:google-public-dns-a.google.com地址:8.8.8.8 *** google-public-dns-a.google.com无法findwww.nonexistingwebsite.com:不存在的域名 C:\ Windows \ System32下>
在一个脚本中,我希望能够很容易地写一个IP地址,所以我想用dig(或者类似的命令)和back-ticks。 不过最简单的输出是我已经能够拿到参数了 > dig -t A +noall +answer www.google.com www.google.com. 300 IN A 173.194.66.106 www.google.com. 300 IN A 173.194.66.104 任何方式(额外的参数,不同的工具,而不是挖?)摆脱垃圾除了IP地址? ( 请不要告诉我使用sed。 ) 谢谢
我有一台服务器,我无法访问。 起初我以为这只是服务器的一些暂时的故障,但从其他IP地址检查显示,它工作得很好。 这只是我的IP地址失败。 所以这里是我试过的: nslookup – 正确parsing ping – 使用IP地址或域名的100%数据包丢失 traceroute – 前几跳工作,但从大约6日起,我只是得到星星 编辑:我正在使用OpenDNS的DNSparsing,如上所述,问题不是DNSparsing。
背景 我有一个运行在Ubuntu上的长时间运行的DNS(bind9)服务器,大部分时间(从Ubuntu,Win8或OSX): $ nslookup gitserver Server: 127.0.1.1 Address: 127.0.1.1#53 Name: gitserver.foobar.com Address: 172.17.51.3 但是,我定期收到一个查找错误: $ nslookup gitserver Server: 127.0.1.1 Address: 127.0.1.1#53 ** server can't find gitserver: NXDOMAIN 请注意,我有bind9configuration一个外向名字和内向。 ftww,gitserver是在内部的一面。 另外,如果我尝试查找3到4次,它通常会重新开始工作。 题 我能做些什么来诊断这个间歇性问题的原因?
我的服务器有一个很奇怪的问题。 大多数人和我自己可以正常访问而没有问题,但是有些人却说他们不能,他们能访问的唯一方法就是通过代理等等。 如果我在我的域中执行nslookup,我可以看到服务器IP和所有这些,但这些人收到超时请求未知的错误。 这是我的域名(请看图片): 1 会发生什么? 谢谢。