When we are ready to build a Web site, we must apply to the domain name registration authority for an Internet domain name, so we usually want to know whether the domain name we are ready to use has been registered, then you can access the NIC site http://www.nic.net, click "Whois" After the link to enter the domain name to query, you can get the results we need.
The WHOIS server queries the international top-level domain names for. com,. NET, and. org to return all WHOIS data, including site domain name registrars, management contracts, contact details (phone, email, address), billing contact, technical support, and domain name server information. It is helpful for the user to understand the basic situation of a website. In many domain name Registrar's website, usually has the WHOIS (Domain name Inquiry) The advanced service, but the personal website because does not have the domain name registrar's qualification and the data, therefore cannot provide the WHOIS service under the general condition.
In fact, using the XMLHTTP protocol, each of us can provide domain name details query (WHOIS) service in our personal website, this article describes how to use ASP combined with XMLHTTP programming to achieve this function.
First, the principle:
The principle is very simple, domain name query is based on RFC 954 provided by the WHOIS protocol. In the implementation process, we access the NIC site's whois database server through our own Web server, query the WHOIS database for what we need, and then synthesize the page back to the client via ASP group.
At the same time, we use XMLHTTP protocol to achieve the client page without refreshing effect and to the server to retrieve WHOIS data requirements.
The specific process is: the client through XMLHTTP proposed domain name Query request-->web Server in the ASP listening page to accept the request, use XMLHTTP to send Retrieval command to the WHOIS server-->whois database to perform query operations, Return results to our own Web server (HTML form) after the-->web server receives the content, the results are delivered to the client-> the client browser uses VBScript to filter out the unwanted portions of the HTML, picking out the WHOIS data to display.