从客户端浏览器确定域的 IP#
大家好,
我非常想从客户端脚本确定域的 IP#。
它用于测试应用程序,以确定某个域是否设置为 QA 地址,而不是 .测试机器将设置其主机文件以将域解析为 QA 地址。
从服务器进行 Ping 没有帮助,因为服务器正在获取公共 DNS 地址。
这在 JavaScript 中可能吗?也许Flash可以做到这一点?
Greetings all,
I would very much like to determine the IP# of a domain from client script.
It's for use in a testing application to determine whether or not a certain domain is set to a QA address as opposed to the address live on the . The testing machine will have it's host file set to resolve a domain to the QA address.
Pinging from the server won't help since the server is getting the public DNS address.
Is this possible in JavaScript? Maybe a Flash could do the trick?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看智能 IP Api。似乎可以完成您想要的一切,并且有一些简单的教程。
Have a look at Smart IP Api. Seems to do everything you're looking for and has some simple tutorials.