VC developed Domain Name query components (source code and description)

Source: Internet
Author: User
Tags zip
Recently, I often see someone ask how to query the domain name in ASP is registered, so write this component, the main principle is to the Gopher site whois server to send WHOIS request, because not too much time, so very simple, at present can only realize to cnnic query, And the returned information is not processed, if you want to use, clear in the ASP to deal with it yourself. Later if there is time will be added and the domain name of the query function. In fact, the main purpose is to provide you with a little reference components, after all, the components of the writing some special.
Download Address:
Component: Http://homepage.qdcatv.com.cn/bigeagle/whois.zip
Source code: Http://homepage.qdcatv.com.cn/bigeagle/whoiscode.zip
Component Introduction
Domain Name Query component version 0.01
Component Name: WhoIS
Description: Query whether the domain name is registered, if registered, then display the domain name information, including the registrant's details.
Version: 0.01 (the reason is called the 0.01 version is because it is too primitive, can only query the domestic registration of the site, that is, CN end of the site. In addition, the output is not processed and needs to be repackaged externally. There is really no time. )
Date: 2000/9/15 Day
Author: bigeagle
How to use (as an ASP call)
<%
Dim m_objdomaininfo

' Create a Whois object
Set m_objdomaininfo = Server. CreateObject ("Whois.domaininfo")

' Query Sina, you can change, but can't add front of www
M_OBJDOMAININFO.GETDOMAININFOCN ("Cctv.com.CN")


If m_objdomaininfo.ifsuccess <> 0 Then ' if successful
Response.Write Replace (M_objdomaininfo.domaininfo, vbCrLf, "<br>")
Else ' If it fails
Response.Write "Cause of Failure:" & M_objdomaininfo.domaininfo
End If
Set M_objdomain = Nothing
%>

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.