本文介绍了从IP地址获取URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我有IP地址,在C ++(Windows)中是否可以获取网站的网址?谢谢您的帮助或指导.
Is there a way in C++ (Windows) to get the URL of a website if I have the IP address? Thank you for any help or direction.
推荐答案
www.google.com. 86399 IN CNAME www.l.google.com.
www.l.google.com. 299 IN A 209.85.146.105
www.l.google.com. 299 IN A 209.85.146.99
www.l.google.com. 299 IN A 209.85.146.104
www.l.google.com. 299 IN A 209.85.146.106
www.l.google.com. 299 IN A 209.85.146.147
www.l.google.com. 299 IN A 209.85.146.103
在这些地址中的第一个(dig -x 209.85.146.105
)上进行反向DNS查找会给我一个不同的名称:
Reverse DNS lookup on the first of these addresses (dig -x 209.85.146.105
) gives me a different name:
105.146.85.209.in-addr.arpa. 86400 IN PTR bru01s01-in-f105.1e100.net.
-没有任何关于任何网站的有用信息.
- which doesn''t say anything useful about any websites.
这篇关于从IP地址获取URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!