Whois查询接口文档
Whois查詢接口文檔
whois(讀作“Who?is”,非縮寫)是用來查詢域名的IP以及所有者等信息的傳輸協議。簡單說,whois就是一個用來查詢域名是否已經被注冊,以及注冊域名的詳細信息的數據庫(如域名所有人、域名注冊商)。通過whois來實現對域名信息的查詢。早期的whois查詢多以命令列接口存在,但是現在出現了一些網頁接口簡化的線上查詢工具,可以一次向不同的數據庫查詢。網頁接口的查詢工具仍然依賴whois協議向服務器發送查詢請求,命令列接口的工具仍然被系統管理員廣泛使用。whois通常使用TCP協議43端口。每個域名/IP的whois信息由對應的管理機構保存。
?
Whois查詢接口:?http://www.haoservice.com/docs/12
?
支持格式:?json
?
接口形式:http
?
返回示例:
{"error_code":0,"reason":"Success","result":{"exp_date":" 27-mar-2015","name_server":" NS1.EZDNSCENTER.COM, NS2.EZDNSCENTER.COM, NS3.EZDNSCENTER.COM, NS4.EZDNSCENTER.COM, NS5.EZDNSCENTER.COM, NS6.EZDNSCENTER.COM, ns1.ezdnscenter.com, ns2.ezdnscenter.com, ns3.ezdnscenter.com, ns4.ezdnscenter.com, ns5.ezdnscenter.com, ns6.ezdnscenter.com","status":" clientTransferProhibitedRegistry Registrant ID:","name":" haoservice.com","email":" xxxx@xxx.com","registrar":" SHANGHAI MEICHENG TECHNOLOGY INFORMATION DEVELOPMENT CO., LTD.","reg_date":" 27-mar-2013","total_infor":null,"Registrant_Organization":" xxxxxx"} }演示示例:
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Net.Security;
using?System.Security.Cryptography.X509Certificates;
using?System.Net;
using?System.IO;
using?System.IO.Compression;
using?System.Text.RegularExpressions;
using?System.Web.Script.Serialization;
namespace?map
{
????class?Program
????{
????????static?void?Main(string[]?args)
????????{
????????????string?key?=?"***************";//申請的key值
????????????string?domian?=?"haoservice.com";
??????
????????????string?url?=?"http://apis.haoservice.com/whois?domain="+domian+"&key="?+?key;
????????????WebClient?wc?=?new?WebClient();
????????????wc.Encoding?=?Encoding.UTF8;
????????????string?str?=?wc.DownloadString(url);
????????????Console.WriteLine(str);
????????????Console.ReadKey();
?
????????}
????}
}
?
?
?
?
?
轉載于:https://www.cnblogs.com/ppyuqi/p/3990370.html
總結
以上是生活随笔為你收集整理的Whois查询接口文档的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Leetcode: Median of
- 下一篇: USB描述符【整理】