查找别名列表
总之,
我有一个 IP 地址,并且我想知道我的组织内指向该 IP 的所有别名。是否可以?
例如,我知道别名“TESTBOX”指向 119.119.119.119。 只知道IP怎么能得出“TESTBOX”呢?
谢谢,
米
All,
I have an IP address and I want to know all aliases within my organization that point to this IP. Is it possible?
For example I know the alias "TESTBOX" points to 119.119.119.119.
How can by just knowing the IP come up with the "TESTBOX" ?
Thanks,
M
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简短的回答:你不能。
您可以尝试对 IP 地址进行反向查找,但这只会显示反向 DNS 中专门分配给该 IP 地址的地址。
请记住,别名可能仅作为单个计算机的
hosts
文件中的条目存在。它们也可能存在于地球另一端的 DNS 服务器中。但是,如果您只对本地 DNS 别名感兴趣,并且您的 DNS 服务器允许区域传输,那么您可以尝试列出每个域中的每个条目(例如,使用host -l xyzzy.bigcorp.com
)并在结果中搜索有问题的 IP 地址。Short answer: You can't.
You can try a reverse lookup on the IP address, but that will only show you the address that has been specifically allocated in the reverse DNS to that IP address.
Remember, aliases might exist only as an entry on a single machine's
hosts
file. They might also exist in a DNS server on the other side of the planet. However, if you're only interested in local DNS aliases, and your DNS servers allow zone transfers, then you can try listing every entry in every domain (eg. withhost -l xyzzy.bigcorp.com
) and searching the results for the IP address in question.