问题描述
全部问候,
我非常想从客户端脚本确定域名的IP#。
I would very much like to determine the IP# of a domain from client script.
它用于测试应用程序,以确定某个域是否设置为QA地址,而不是在该地址上。测试机将其主机文件设置为将域解析为质量检查地址。
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.
从服务器进行Ping操作将无法帮助,因为服务器正在获取公共DNS地址。
Pinging from the server won't help since the server is getting the public DNS address.
这是否可能在JavaScript?也许一个Flash可以做到这一点?
Is this possible in JavaScript? Maybe a Flash could do the trick?
推荐答案
看看。似乎做你想要的一切,并有一些简单的教程。
Have a look at Smart IP Api. Seems to do everything you're looking for and has some simple tutorials.
这篇关于从客户端浏览器中确定域名IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!