This article explains how to use the DIWhois component in ASP.
This article applies to Windows Shared Hosting and Windows Reseller accounts.
DIWhoIs is an ASP component which can be used to display the whois lookup information for a particular domain.
Properties
The component supports the following properties:
Host: The whois server (defaults to whois.internic.net)
Port: The port to connect to (defaults to 43)
Domain: The domain you want to lookup
Results: Standard results using CRLF to end a line
HTMLResults: HTML formatted results using <BR> to end a line
Methods
The component supports the following method:
Lookup: Performs a whois lookup using Host, Port and Domain. Places the results in Results and HTMLResults properties
Example: An example showing how the component may be used within an ASP script to obtain whois output from a remote whois server:
set WhoIs = Server.CreateObject("DIWhoIS.DiWhoIs")
WhoIs.Host = "whois.internic.net"
WhoIs.Port = 43
WhoIs.Domain = "donhost.co.uk"
WhoIs.Lookup
Response.write WhoIs.Result