|
Whois search
This code
snippet will show you how to query the WHOIS database to check
whether a domain is available .
This example
uses the C2G Whois component . You can get this
here
Now download this component and install it on your machine
, create a new ASP page and enter the following code
<%
Set wi = CreateObject("c2g.whois")
wi.server = "whois.internic.com"
result = wi.whois("www.yahoo.com")
Response.Write result
%>
Now save the page and run it , you should get a message on
the screen like this
Whois Server Version 1.3 Domain names in the .com, .net, and
.org domains can now be registered with many different competing
registrars. Go to http://www.internic.net for detailed information.
Server Name: WWW.CNET.COM.BR IP Address: 200.241.207.4 Registrar:
CORE INTERNET COUNCIL OF REGISTRARS Whois Server: whois.corenic.net
Referral URL: www.corenic.net >>> Last update of whois
database: Sat, 28 Apr 2001 07:29:09 EDT <<< The Registry
database contains ONLY .COM, .NET, .ORG, .EDU domains and Registrars.
Visit http://www.componentstogo.com
|