Domain whois query function [million NET and new network]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
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
function Whois_query ($domain) {//fix the domain name: $domain = Strtolower (Trim ($domain));
$domain = preg_replace ('/^http:\/\//i ', ', ', $domain);
$domain = preg_replace ('/^www\./i ', ', ', $doma
subordinates. China's national Registration Authority is the Internet Information Center (CNNIC).Whois (read "Who is", not an abbreviation) is a transport protocol used to query the IP of a domain name and the owner of such information. In short, WHOIS is a database (such as the domain owner, domain name registrar) that is used to inquire about whether a domain name has been registered and the details of r
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
[To] How is the IP address of the carrier assigned by WHOIS?The IP address distribution of some Chinese telecom operators is obtained under Linux:Apnic is the organization of IP address allocation in the Asia-Pacific region, it has a rich and accurate IP address allocation database, and this information is also public, and provides a query tool, let us see how to get some of the Chinese basic telecom operators (Netcom, telecommunications, CRC, Educati
This article describes how to query whois information in php and related skills in php domain name query. For more information, see the following example. Share it with you for your reference. The details are as follows:
Php is used to query the whois information list.
function whois_query($domain) { // fix the domain name: $domain = strtolower(trim($domain)); $domain = preg_replace('/^http:\/\//i', ''
According to the 2014 ICANN regulations, all in the GoDaddy domain name registrars (including other registrars, of course) new registration, new transfer, the new transfer of domain names require WHOIS mailbox activation verification. After our new domain name, new transfer, new transfer domain name, the registrar will send a confirmation email to the WHOIS information in the mailbox, if we do not activate
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
1, simplified the code. (It actually removes some of the variables that you don't need to define)
2, for the information retrieved from the InterNIC is too simple, according to InterNIC feedback in the information of WHOIS server for further inquiries. Yahoo, for example, has more detailed information on the whois.networksolutions.com.
Class Whois {
var $use _cache = 1;
var $FROM _cache=0;
var $cache _dir
1, simplified the code. (It actually removes some of the variables that you don't need to define)
2, for the information retrieved from the InterNIC is too simple, according to InterNIC feedback in the information of WHOIS server for further inquiries. Yahoo, for example, has more detailed information on the whois.networksolutions.com.
?
Class Whois {
var $use _cache = 1;
var $FROM _cache=0;
var $cache _d
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
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.