123 Eng

Engineering the engineers™


Latest Jobs   Forum Map

 


Home

Source Codes

Engineering Colleges

BE Students

Training  Reports (updated)

Seminar Reports (updated

Placement Papers (updated)

Forums

   Computer Science / IT

   Electronics

   Electrical

   Mechanical

   Chemical

   Civil

   CAT / MBA

   GMAT / Foreign MBA

Latest Jobs

Engineering Jobs / Technical Jobs

Management Jobs

Sitemap

About-Us

Terms of use

Displaying  Source Code(s)  
 

 
Whois Lookup

--------------------------------------------------------------------------------

Description : Shows how you can do a WhoIs lookup using a COM object capable of using winsock.

<%@ Language=VBScript %>
<H1>Whois Lookup</H1>
<FORM>
<Input Type="text" name="DNS" value="<%=Request.QueryString("DNS")%>">
<Input Type="submit" value="Lookup">
</FORM>
<HR>
<%
Dim objASPSocks
Dim strResponse
' Goto ServerObjects.com for Eval Versio
' n.
Set objASPSocks = Server.CreateObject("AspSock.Conn")
objAspSocks.RemoteHost = "whois.networksolutions.com"
objAspSocks.Port = 43
objAspSocks.Open
objAspSocks.WriteLn(Request.QueryString("DNS"))
strResponse = objAspSocks.ReadBytesAsString(-1)
objAspSocks.Close
Set objASPSocks = Nothing

Response.Write "<PRE>" & strResponse & "</PRE>"
%>
 

 

 

Contribute content or training reports / feedback / Comments
job placement papers
All rights reserved © copyright 123ENG