Whois query interface documentation

Source: Internet
Author: User
Tags domian

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.