网站检查MX记录是否存在的方法

进行DNS查询的一个非常有用的工具是nslookup,可以使用它来查询DNS中的各种数据。可以在Windows的命令行下直接运行nslookup进入一个交互模式,在这里能查询各种类型的DNS数据。DNS的名字解析数据可以有各种不同的类型,有设置这个zone的参数的SOA类型数据,有设置名字对应的IP地址的A类型数据,有设置邮件交换的MX类型数据。这些不同类型的数据均可以通过nslookup的交互模式来查询,在查询过程中可以使用 set type命令设置相应的查询类型。如:C:\>nslookupDefault Server: [202.106.184.166]Address: 202.106.184.166> set type=mx> sina.com.cnDefault Server: [202.106.184.166]Address: 202.106.184.166Non-authoritative answer:sina.com.cn MX preference = 10, mail exchanger = sinamx.sina.com.cnsina.com.cn nameserver = ns1.sina.com.cnsina.com.cn nameserver = ns3.sina.com.cnsinamx.sina.com.cn internet address = 202.106.187.179sinamx.sina.com.cn internet address = 202.106.182.230ns1.sina.com.cn internet address = 202.106.184.166ns3.sina.com.cn internet address = 202.108.44.55如果所要查的某域名的MX记录不存在,则出现与以下类似的提示: C:\>nslookup> set type=mx> amafdsfxit.com.cnDefault Server: [202.106.184.166]Address: 202.106.184.166*** 202.106.184.166 can't find amaxit.com.cn: Non-existent domain


本文出自快速备案,转载时请注明出处及相应链接。

本文永久链接: https://www.xiaosb.com/beian/4350/