Use XMLHTTP to add a domain name query function to your site

Source: Internet
Author: User
Tags html form domain name server domain name registration

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.

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.