从客户端浏览器确定域的 IP# [英] Determine IP# of domain from client browser

查看:27
本文介绍了从客户端浏览器确定域的 IP#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我非常想从客户端脚本确定域的 IP#.

I would very much like to determine the IP# of a domain from client script.

它用于测试应用程序以确定某个域是否设置为 QA 地址,而不是 .测试机将设置其主机文件以将域解析为 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?

推荐答案

看看 Smart IPapi.似乎可以满足您的所有需求,并且有一些简单的教程.

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

这篇关于从客户端浏览器确定域的 IP#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆