Determine IP# of domain from client browser

两盒软妹~` 提交于 2019-11-28 10:08:08

问题


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?


回答1:


Have a look at Smart IP Api. Seems to do everything you're looking for and has some simple tutorials.



来源:https://stackoverflow.com/questions/2523574/determine-ip-of-domain-from-client-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!