我正在使用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 = mx4.fastwebnet.it achab.it.fastwebnet.it MX preference = 10, mail exchanger = mx1.fastwebnet.it achab.it.fastwebnet.it MX preference = 10, mail exchanger = mx3.fastwebnet.it
fastwebnet.it是我的服务提供商。
与设置其他服务器相同的问题,例如nslookup -type=mx achab.it 8.8.8.8 。
我看不出有什么问题。 是不是从achab.it开始自动获取域mail.achab.it的正确方法?
更新 :即使我要求nslookup -type=mx outlook.com或nslookup -type=mx fakesite.nodomain ,输出也是一样的
常常忘记DNS名称以“。”结尾。
为了减轻用户的使用寿命,许多软件都接受没有结束点的名称并自动添加。
没有它,input的名字应该是相对的。
相对于什么? 在主机上configuration任何DNS后缀。
Windows(与其他操作系统一样)实际上pipe理多个DNS后缀。 如果你input“ipconfig / all”,你会发现一个Primary DNS suffix (可能为空)以及一个或多个Connection-specific DNS suffix还有其他可以configuration的DNSsearch后缀。
您可以在网卡属性中控制TCP / IP的高级属性:
当执行查找相对名称(不以点结尾)时,窗口将尝试用这些后缀来parsing它。
看来您的调制解调器从您的提供商那里收到了fastwebnet.it的DNS后缀,并且这个设置通过DHCP被传输到您的机器上。
我认为这是你的DNS客户端或你的提供商的DNS服务器设置的方式。
如果这个问题是在8.8.8.8的DNS服务器上复制的,那么我认为你的本地parsing器正在附加一个不应该是的search域。
看看你的输出,正确的响应正在返回: achab.it.fastwebnet.it不一样,第一个表单的答案可能是正确的(即fastwebnet.it中的任何MX请求都会返回这个回应)。
用更技术性的术语,你可以得到一个相对的域名+你的search域的答案。
所以我要检查的第一件事是nslookup -type=mx achab.it.的输出nslookup -type=mx achab.it. 是(注意结局)。 这将使请求一个完全合格的,并应该让你的理智回来。
我不知道在Windows上如何解决这个问题,我担心 – 在linux上,通过在resolv.conf中添加options ndots:1可以解决这个问题( http://man7.org/linux/man- pages / man5 / resolv.conf.5.html )。