use Python to fragment whois information into a database
Whois server returns the WHOIS dictionary information will be very long, some domain name whois information has 2000+ byte, will return the WHOIS information to slice processing, the procedure chooses divides it into
Previously in the PHP host domain name program used by a WHOIS check code to determine whether the domain name being queried is registered, the function includes most of the domain name suffix, will be based on the suffix of the different connections to different query server, previously can use, time relationship, I am not currently testing those query URLs are still available, if not, you need to find information on your own to see what the current
Voodoo published in 2000-06-03 22:42:07Domain name:wwwDim strresult
If Request.ServerVariables ("request_method") = "POST" THEN
Dim strquery
' Get the domain name you want to query
Strquery=request ("domainname") "." Request ("ext")
Dim Objsock
' Create a Sock object
Set objsock=server.createobject ("Aspsock.conn")
' Set the WHOIS server to Rs.internic.net
Select Case Request ("ext")
Case "com", "net", "org"
Objsock.remotehost= "Rs.internic.net"
Gj=
Voodoo published in 2000-06-03 22:42:07Domain name:www
Dim strresult
If Request.ServerVariables ("request_method") = "POST" THEN
Dim strquery
' Get the domain name you want to query
Strquery=request ("domainname") "." Request ("ext")
Dim Objsock
' Create a Sock object
Set objsock=server.createobject ("Aspsock.conn")
' Set the WHOIS server to Rs.internic.net
Select Case Request ("ext")
Case "com", "net", "org"
Objsock.remotehost= "Rs.internic.net"
G
toEXAMPLES: Using the exampleSee ALSO: Another referenceoperation after the man file is openedFlip Screen:Turn back one screen: Space(space bar)Flip One screen forward:b KeyTurn back one line: Enter(enter)Turn One line forward:K KeyFind:/keyword Backward Lookup? keyword forward lookupN: NextN: PreviousQ: ExitDate usesDate + "This is%Y. %n Today is%d "UTC Green Wedge Observatory time, Prime Meridian Greenwich Mean Time (old translation GMT or Greenwich Mean Time English: gmt prime Me
Nbsp; domain name to be queried:
Www. Nbsp; TEXT = "query! "Runat =" server "/> (query only. COM /. net /. org /. CN Domain Name whois information) nbsp;
Import java.net .*;
Import java. Io .*;
Public class whois {
Public final static int default_port = 43;
Public final static string default_host = "whois.cnnic.net.cn"; // CN interface: "whois.cnnic.net.cn" COM interface: "whois.internic.net"
Public static void main (string [] ARGs ){
Inetaddress server;
Int Port = default_port;
String STR = "";
Try {
Server = inetaddress. getbyname (default_host );
} Catch (exception e ){
E. printstacktrace ();
Return
toEXAMPLES: Using the exampleSee ALSO: Another referenceoperation after the man file is openedFlip Screen:Turn back one screen: Space(space bar)Flip One screen forward:b KeyTurn back one line: Enter(enter)Turn One line forward:K KeyFind:/keyword Backward Lookup? keyword forward lookupN: NextN: PreviousQ: ExitDate usesDate + "This is%Y. %n Today is%d "UTC Green Wedge Observatory time, Prime Meridian Greenwich Mean Time (old translation GMT or Greenwich Mean Time English: gmt prime Me
In the previous PHP host domain name program used in a WHOIS check code, used to determine whether the queried domain name is registered, the function contains most of the domain name suffix, will be based on the suffix of different connections to different query servers, previously able to use, time relations, I do not now test those query Web site can still be used, if not, you need to find information on your own, to see what the current Web site i
Million web whois (using the interface for the million network to provide a legitimate interface)
Copy Code code as follows:
function Whois_hichina ($domain) {
Preg_match ("|$whois [0] = str_replace (' Friendship tip: According to the requirements of the registration Board, the expired domain name may be in the Registrar automatic renewal phase, you see the domain name due date in this que
JJX original, reprint must indicate the source
To copy code, use the forum's "copy" feature to complete
Chinaasp's domain name query to sell 1000 yuan, netizens made comments, but was Lucot a sentence (you put him packaged into components to try?) ) was blocked back. Domain name registration query (WHOIS) is it really complicated?
Domain name registration query is mainly through the WHOIS server to complet
Copy Code code as follows:
?
Class Searchdomain
{
var $domain = "";
function SetDomain ($udomain)
{
$this->domain = $udomain;
}
//
Get whois and parse the domain name status
OK is not registered
Non-null Value Expiration Time
Null value Unknown
//
function GetInfo ()
{
/*
$dinfo = Trim ($this->getwhois ());
if ($dinfo = = "") return "";
if (eregi ("No Match", $dinfo)) return "OK";
return $rs;
*/
$WL = "";
$w _server = $this
Introductionquite often you want to know who owns a given domain. To obtain the "registry information", you go to the respective registry and start a so called WHOIS query (lookup). The trick is this have to know which Registry is responsible for which TLD (top level Domain).
The database is the so called WHOIS database and it has one distinct property:it provides us with a query interface via T CP Port 43!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.