1、如何知道域名的ip地址?
http://ip.chinaz.com/ 這個網站就可以查專啊屬
2、如何查詢一個域名的IP地址
通過PING來查詢
電腦運行cdm 如你想看百度域名就輸入百度域名查詢
3、如何獲取域名對應的IP地址
最簡單,容易的方法
使用ping命令
例如 ping baidu.com
然後ping 回復的地址就是該網站的
4、知道IP地址,如何得到對應的域名
http://whois.hichina.com/
http://www.webmasterhome.cn/whois/
開始--運行--cmd
nslookup
輸入IP地址,會反相解析出域名
5、怎樣獲得某域名的IP地址?
在Dos命令下ping一下某個網站就可以得到了
例如想得到www.baidu.com的IP
就輸入ping www.baidu.com 就可以了
6、java怎麼通過域名獲取ip地址
import java.net.InetAddress;
import java.net.UnknownHostException;
public class TestInetAddress {
InetAddress myIpAddress = null;
InetAddress[] myServer = null;
public static void main(String args[]) {
TestInetAddress address = new TestInetAddress();
System.out.println("Your host IP is: " + address.getLocalhostIP());
String domain = www.jb51.net;
System.out.println("The server domain name is: " + domain);
InetAddress[] array = address.getServerIP(domain);
int count=0;
for(int i=1; i<array.length; i++){
System.out.println("ip "+ i +" "+ address.getServerIP(domain)[i-1]);
count++;
}
System.out.println("IP address total: "+count);
}
/**
* 獲得 localhost 的IP地址
* @return
*/
public InetAddress getLocalhostIP() {
try {
myIpAddress = InetAddress.getLocalHost();
} catch (UnknownHostException e) {
e.printStackTrace();
}
return (myIpAddress);
}
/**
* 獲得某域名的IP地址
* @param domain 域名
* @return
*/
public InetAddress[] getServerIP(String domain) {
try {
myServer = InetAddress.getAllByName(domain);
} catch (UnknownHostException e) {
e.printStackTrace();
}
return (myServer);
}
}
7、如何查看一個域名所對應的IP地址?
查看一個域名所對應的IP地址步驟如下:
1、點擊電腦左下角開始菜單,打開「運行」選項。
2、然後輸入「cmd」並打開。
3、在彈出的頁面輸入ping+你想要查看的域名,比如新浪網,ping www.sina.com.cn。
4、然後按鍵盤的回車鍵,此時出現的IP就是你要查看的IP,如圖所示。
(7)獲取域名的ip地址嗎擴展資料
網域名稱系統(DNS,Domain Name System,有時也簡稱為域名)是網際網路的一項核心服務,它作為可以將域名和IP地址相互映射的一個分布式資料庫,能夠使人更方便的訪問互聯網,而不用去記住能夠被機器直接讀取的IP地址數串。
例如,www.wikipedia.org是一個域名,和IP地址208.80.152.2相對應。DNS就像是一個自動的電話號碼簿,我們可以直接撥打wikipedia的名字來代替電話號碼(IP地址)。我們直接調用網站的名字以後,DNS就會將便於人類使用的名字(如www.wikipedia.org)轉化成便於機器識別的IP地址(如208.80.152.2)。
參考資料網路--域名
8、如果知道了某個站點的域名,能否獲取它的IP地址呢?
當然能
ping 域名就會得到IP
9、java通過域名獲取IP地址
public String getIP(String name){
InetAddress address = null;
try {
address = InetAddress.getByName(name);
} catch (UnknownHostException e) {
// TODO Auto-generated catch block
e.printStackTrace();
System.out.println("獲取失敗");
}
return address.getHostAddress().toString();
}