function One:
Million-net Whois (the interface used to provide a legal interface to the WAN)
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: According to the requirements of the
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;
var $cache _dir = "./"; Set yourself accordin
Use PHP to query the domain name status whois class. Copy the code as follows :? ClassSearchDomain {var $ domain; functionSetDomain ($ udomain) {$ this-domain $ udomain;} get whois and analyze the domain name status. OK is not registered. it is not empty.
The code is as follows:
Class SearchDomain{Var $ domain = "";Function SetDomain ($ udomain){$ This-> domain = $ udomain;}//// Obtain
Php queries whois information, and phpwhois information. Methods for querying whois information in php. phpwhois information in this document describes how to query whois information in php. Share it with you for your reference. The details are as follows: Here we use php to query the whois information through php, and
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;
var $cache _dir = "./"; Set yourself accord
I. Classification of information collection
The methods of information collection can be grouped into two categories:
1. Active Collection: Active collection is to obtain relevant information, such as ICMP ping or TCP port scan, by directly initiating interaction with the target network being tested.
2. Passive collection: Passive collection is through Third-party services to obtain information on the target network, such as the use of Google search engine.
second, the domain name information
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
Whois query interface documentation
Whois (hereinafter referred to as "who is") is a transmission protocol used to query the IP address of a domain name and information such as the owner. Simply put, whois is a database used to query whether a domain name has been registered and the details of the domain name to be registered (such as the domain name owner and do
Million-net Whois (the interface used to provide a legal interface to the WAN)
Copy CodeThe code is 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
NL whois.domain-registry.nlEU whois.euEdu whois.educause.netNET Whois.crsnic.netCOM whois.crsnic.netORG whois.crsnic.netInfo whois.afilias.comDe whois.denic.deCN whois.cnnic.net.cnThese are the WHOIS servers I've collected.
For example, you want to query the domain name is www.111cn.net it belongs to the. NET suffix, this time you will go to whois.crnic.net this side to query.
Next we look at the specific implementation code.
Using System;Us
1. simplified the code. (In fact, some unnecessary variable definitions are removed)2. The information retrieved from INTERNIC is too simple. Further query is performed based on the whois server in INTERNIC feedback. For example, YAHOO has more detailed information on whois.networksolutions.com.Class whois {Var $ use_cache = 1;Var $ FROM_CACHE = 0;Var $ cache_dir = "./"; // according to your system settings
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;
var $cache _dir = "./"; Set yourself accord
I have been searching for APIs in PHP for WHOIS (with PHP example) for a long time.
Reply to discussion (solution)
Disguised advertisements for junk/junk charges
The best way is to connect to the official whois server. you call your own There are too many things in php whois.
Obviously, you can add your website traffic and directly obtain the offic
using python for whois queries
installing whois with the PIP command
Pip Install Python-whois
Python 2.7.6 (default, OCT 2016, 20:30:19)
[GCC 4.8.4] on linux2
Type ' help ', ' copyright ', ' credits ' or ' Licens E "For more information.
" >>> import whois
>>>
How to use the installation successfully
[GCC 4.8.4] on
: This article mainly introduces the WHOIS class (modified version) in php. if you are interested in the PHP Tutorial, please refer to it. 1. simplified the code. (In fact, some unnecessary variable definitions are removed)
2. the information retrieved from INTERNIC is too simple. further query is performed based on the whois server in INTERNIC feedback. For example, YAHOO has more detailed information on w
The modified version of the WHOIS class. 1. simplified the code. (In fact, some unnecessary variable definitions are removed.) 2. the information retrieved from INTERNIC is too simple. WHOISSER 1 in INTERNIC feedback simplifies the code. (In fact, some unnecessary variable definitions are removed)
2. the information retrieved from INTERNIC is too simple. further query is performed based on the whois server
I'm afraid a lot of friends like me,makewithpythonlanguageincrediblycan beImplementwhoisServer Queryfunction. belowI put the code and instructions to everyone to see, who need to be able to refer to. Originally want to directly from the WHOIS server query, but found to write the socket with 43 port link server, but some server address is not clear, and the query command seems to have changed so do not want to toss, think directly with Chinaz page impl
bytes. If it fails, it returns false.
PHP $file fopen ("Test.txt", "R"); while feof ($file)) { echofgets($file). "; } fclose ($file); ? >
The FGETSS () function reads a row from an open file and filters out HTML and PHP tags. As with Fgets (), the difference is that FGETSS attempts to remove any HTML and PHP markup from the text that is being read.
FGETSS (file,length,tags) can use the optional third parameter tags to specify which tags are not removed. If it fai
I've been looking for a long time, and now we share it.
Reply to discussion (solution)
Disguised advertisements for charges of junk and stuff
The best way is to connect to the official WHOIS server, which you are completely calling your ownThere are too many things about PHP whois.
Obvious advertising posts, increase their own website traffic, direct access to the official not on the line
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.