The previous article mainly introduced Python through the socket query Whois method, involving Python based on the Socket module query related skills, with a certain reference value, the need for friends can refer to the next http://www.cnblogs.com/ Zhangmengqin/p/9144022.htmlKnock the blackboard!!! each domain suffix corresponds to the WHOIS server is not the sa
Million-net Whois (the interface used to provide a legal interface to the WAN)
Copy the Code code as follows:
function Whois_hichina ($domain) {Preg_match ("|
(.+?)|is ", @file_get_contents (' http://whois.hichina.com/cgi-bin/whois?domain= ' $domain. '), $whois);
$whois [0] = str_replace (' Friendly tip: The expire
"Original": before using php to query domain name whois information, a whois query tool was specially deployed on the plog.cn server to implement "plog.cn 1-6 Super-expecting to delete short domain names. PS: method of use http://plog.cn/whois/yourdomain.com
In order to implement this
Due to historical Internet reasons, apin is responsible for the overall planning of the entire network IP address and IP allocation management in some African regions in North America. Correspondingly, whois.apin.net is the root server of IP whois, the standard IP whois query method is to first query whois.apin.net which region an IP belongs to, and then query th
Due to the historical reasons for the Internet, Apin is responsible for the overall network IP planning as well as the North American region also has some of Africa's IP allocation management, and accordingly, whois.apin.net is the IP whois root server, the standard IP whois query method is , first query the whois.apin.net for which area an IP belongs to, and the
Here we obtain data from the data interface of the WAN or new network, and then output it through the simple text processing of PHP.
Copy CodeThe code is as follows:
$domain = $_get[' Q '];
Preg_match ("
Is ", @file_get_contents (' http://www.xinnet.cn/Modules/agent/serv/pages/domain_whois.jsp?domainNameWhois= '. $ Domain. ' nocode=nocode '), $whois);
echo $whois [1];
?>
Do here, may have some friends to
, including maintaining WHOIS data, submitting data to the Registrar, supporting public WHOIS query services, ensuring that the registrant's details are managed by a third party, and complying with the conditions associated with the end of the registration period in RAA. Some registrars may choose to complete their registration through a distributor. Distributors are affiliated with registrars or have c
machine, we only need to view the relevant files of the Local Machine to learn the real IP address of the website (I suddenly thought that if someone intruded into a Domain Name Server (this is also common ), can he bind viruses or Trojans with Domain Name Information? As a result, the trojan will be downloaded along with the domain name resolved through that server, which is a lot of bots, sweat ). In add
Due to the historical reasons for the Internet, Apin is responsible for the overall network IP planning as well as the North American region also has some of Africa's IP allocation management, and accordingly, whois.apin.net is the IP whois root server, the standard IP whois query method is , first query the whois.apin.net for which area an IP belongs to, and the
Here we get data from the data interface of hichina or xinnet, and process and output data through simple php text.Copy codeThe Code is as follows:$ Domain = $ _ GET ['q'];Preg_match ("|| Is ", @ file_get_contents ('HTTP: // www.xinnet.cn/Modules/agent/serv/pages/domain_whois.jsp? DomainNameWhois = '. $ domain.' noCode = nocode'), $ whois );Echo $ whois [1];?> Here, some may ask, isn't this a simple php sc
Here we get data from the data interface of hichina or xinnet, and process and output data through simple php text.
Copy codeThe Code is as follows: $ Domain = $ _ GET ['q'];
Preg_match ("|
| Is ", @ file_get_contents ('HTTP: // www.xinnet.cn/Modules/agent/serv/pages/domain_whois.jsp? DomainNameWhois = '. $ domain.' noCode = nocode'), $ whois );
Echo $ whois [1];
?>
Here, some may ask, isn't this a simple
Whois is simply a database that queries whether the domain name has been registered, as well as the details of the registered domain name (such as domain name owner, domain name registrar, domain name registration date, and expiration date, etc.). Through the domain name WHOIS server query, you can query the contact information of the domain owner, as well as the
Here we obtain data from the data interface of the WAN or new network, and then output it through the simple text processing of PHP.
Copy Code code as follows:
$domain = $_get[' Q '];
Preg_match ("|
|is ", @file_get_contents (' http://www.xinnet.cn/Modules/agent/serv/pages/domain_whois.jsp?domainNameWhois= '. $ Domain. ' nocode=nocode '), $whois);
echo $whois [1];
?>
Do here,
1, simplify the code. (in fact, the definition of a few variables is removed)
2, for the information retrieved from InterNIC is too simple, according to InterNIC feedback information in the WHOIS server for further inquiries. For example, Yahoo has more detailed information on the whois.networksolutions.com.
Class Whois {
var $use _cache = 1;
var $FROM _cache=0;
information database, through the formal website query domain name registration information more credible and reliable. Where name server is the NS record that we often call, is the server information that the domain name resolves uses, this is vital to the domain name security.How to use WHOIS information to inquire about domain name squatting?The Domain name r
1, simplify the code. (in fact, the definition of a few variables is removed)
2, for the information retrieved from InterNIC is too simple, according to InterNIC feedback information in the WHOIS server for further inquiries. For example, Yahoo has more detailed information on the whois.networksolutions.com.
Class Whois {
var $use _cache = 1;
var $FROM _cache=0
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 _c
){result = Resources.Whois.SocketError;return result;}Ns. Close ();Client. Close (); return result;}}}
I put the WHOIS server file in a text file and put it in the
App_datawhoisserver.txt, it's inside. This is when the Whois class is instantiated. It will automatically load the content.The key part is the lookup method, where lookup allows for a domain name t
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.