<% @ LANGUAGE=VBScript %>
<%
Dim Domain,socket
Domain = "91now" ‘这里以91now为例
Set socket = Server.CreateObject( "Socket.TCP" ) '建立socket对象
function whois( Domain, Server )
socket.Host = Server + ":43" '设置主机地址
socket.Open() ’打开
socket.SendLine( Domain ) ‘传递变量
socket.WaitForDisconnect()
Response.Write( "<blockquote><pre>" + socket.Buffer + "</pre></blockquote>" ) ’获得内容
socket.Close() ‘关闭
End Function
%>
<html>
<body bgcolor="#FFFFFF" text="#000010" link="#0000C0" vlink="#000040" alink="#000040">
<%Call whois( DomainName + ".com", "rs.internic.net" ) %>
<%Call whois( DomainName + ".net", "rs.internic.net" ) %>
<%Call whois( DomainName + ".org", "rs.internic.net" ) %>
</body>
</html>
本文地址:http://com.8s8s.com/it/it8985.htm