Whois query interface documentation
Whois (hereinafter referred to as "who is") is a transmission protocol used to query the IP address of a domain name and information such as the owner. Simply put, whois is a database used to query whether a domain name has been registered and the details of the domain name to be registered (such as the domain name owner and domain name registrar ). Whois is used to query domain name information. Early whois queries existed mostly through command column interfaces, but now some online query tools with simplified web interfaces can be used to query different databases at a time. The Web interface query tool still relies on the WHOIS protocol to send query requests to the server. The command column interface tool is still widely used by system administrators. Whois usually uses TCP port 43. The whois information of each domain name/IP address is saved by the corresponding management organization.
Whois query interface: http://www.haoservice.com/docs/12
Supported format: JSON
Interface Format: HTTP
Return example:
{ "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":" [email protected]", "registrar":" SHANGHAI MEICHENG TECHNOLOGY INFORMATION DEVELOPMENT CO., LTD.", "reg_date":" 27-mar-2013", "total_infor":null, "Registrant_Organization":" xxxxxx" }}
Demo:
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 value applied
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 ();
}
}
}
Whois query interface documentation