我正在寻找一种基于IP地址查询DNS记录的方法,但似乎找不到这样的方法.有什么建议吗?
我有一个区域,有数百个记录有不同的IP地址。许多匹配一个特定的ip,我想得到所有的记录,符合我正在寻找的ip。
发布于 2013-09-05 08:00:59
如果没有有效的PTR记录,可以尝试以下操作:
dnscmd [dns_server] /enumrecords zone.name @ | findstr "ww.xx.yy.zz"
发布于 2013-09-05 04:25:48
您需要的是“反向”DNS查找,它可能工作,也可能不工作,这取决于是否为所讨论的网络块设置了适当的反向区域,以及是否存在此IP地址的PTR记录。
如果IP有有效的PTR记录,可以使用host进行测试:
~ host serverfault.com
serverfault.com has address 198.252.206.16
serverfault.com mail is handled by 30 alt2.aspmx.l.google.com.
serverfault.com mail is handled by 40 aspmx2.googlemail.com.
serverfault.com mail is handled by 50 aspmx3.googlemail.com.
serverfault.com mail is handled by 10 aspmx.l.google.com.
serverfault.com mail is handled by 20 alt1.aspmx.l.google.com.
~ host 198.252.206.16
16.206.252.198.in-addr.arpa domain name pointer stackoverflow.com.https://serverfault.com/questions/536496
复制相似问题