%@ LANGUAGE="JavaScript" %> <% socket = Server.CreateObject( "Socket.TCP" ); function whois( Domain, Server ) { %> <%= domain%> <% // Whois port is 43 socket.Host = Server + ":43"; socket.Open(); // Send the query.... socket.SendLine( Domain ); // Wait for disconnect and output the buffer socket.WaitForDisconnect(); Response.Write( "
" ); socket.Close(); } %> <% var DomainName; DomainName = Request.QueryString( "Domain" ).item; %> <% whois( DomainName + ".se", "whois.nic- se.se" ) %> <% whois( DomainName + ".com", "rs.internic.net" ) %> <% whois( DomainName + ".net", "rs.internic.net" ) %> <% whois( DomainName + ".org", "rs.internic.net" ) %>" + socket.Buffer + "