Introduction: This is a detailed page of the domain name query system whois written by PHP. It introduces the related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 330401 'rolling = 'no'>If ($ domain){If ($ domain){$ Fp = fsockopen ("rs.internic.net", 43, $ errno, $ errstr, 10 );If (! $ FP){Echo "$ errstr ($ errno)N ";}Else{Fputs ($ FP, "$ domainrn
Linux Whois command installation and use, linuxwhois command Installation
Everyone knows how to view the details of a domain name,They all go to the whois server to query,Like http://whois.chinaz.com
In fact, there is a whois command in Linux,However, jwhois must be installed. Take CentOS as an example:
Installation:
[root@centos ~]# yum install jwhois -y
Usage:
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 query for reference only
return $whois [0]);
}
New Web whois (non-new network provided, only acc
This article is an example of how to query whois information in PHP. Share to everyone for your reference. Specifically as follows:
Here, use PHP to query the list of Web sites for whois information
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26-27--28 29---30 31--32 33 34 35 36 37 38-39 40 41 42 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 6
Use PHP to query the domain name status whois class
The code is as follows:
Class SearchDomain{Var $ domain = "";Function SetDomain ($ udomain){$ This-> domain = $ udomain;}//// Obtain whois and analyze the domain name status// OK is not registered// Non-null expiration time// Null value unknown//Function GetInfo (){/*$ Dinfo = trim ($ this-> GetWhois ());If ($ dinfo = "") return "";If (eregi ("no match
Php method of querying whois information, Phpwhois information method
In this paper, we explain how to query whois information in PHP. Share to everyone for your reference. Specific as follows:
Use PHP to query the list of websites that query whois information
function Whois_query ($domain) {//fix the domain name: $domain = Strtolower (Trim ($domain)); $domain
Copy CodeThe code is as follows:
Class Searchdomain
{
var $domain = "";
function SetDomain ($udomain)
{
$this->domain = $udomain;
}
//
Get whois and analyze 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->getserver ();
if ($w _s
Function 1:// Hichina whois (the interfaces used provide valid interfaces for hichina)Function whois_hichina ($ domain ){Preg_match ("| $ Whois [0] = str_replace (Note: as required by the Registry, expired domain names may be in the automatic renewal phase of the Registrar, the domain name expiration date you see here is for reference only Return $ whois [0];}//
In the whois++ structure, the customer is responsible for the network roaming, because each host only informs the customer and its neighboring host is what, this protocol is not complex, the customer opens to a server connection, sends the inquiry request, receives the reply, closes the connection. The customer analyzes after receiving the reply, and then decides which host to contact next. This allows the customer to have an algorithm that allows the
Whois information will be obtained from the WHOIS query and stored in the database
specific methods But more elaborate
write the domain name or match the offending domain name to the database where the request occurred
"'--------------------------ver:2.0 date:2017/11/22 auth:wud---------------------- ----' Import DNS import mysqldb import whois import sys from
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
Previously wrote a socket based, but often to connect different WHOIS servers, some information is not complete.
This is directly based on the Chinese webmaster Network, because the target page has JS dynamic operation, so can only use the PAM module.
Here is an introduction:
Bar each line one of the write script in the program directory of the Dns.txt, and then run the following script.
The program automatically generates a separate HTM file for ea
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
Some time ago, I spent a few nights working on an online tool site. New tools are not available recently. If you need any online tools, you can submit them,
I prefer to be a developer-related tool, and I am not interested in tools like online name checking.
Domain whois data mainly comes from a website that provides domain whois query, because the data queried by this site is more detailed than that of
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.