PHP Classes

PHP Whois Domain Info: Get domain whois information checking IANA first

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 496 This week: 1All time: 5,846 This week: 560Up
Version License PHP version Categories
whois-info-domain 1.0The PHP License4.0Networking
Description 

Author

This class can get domain whois information checking IANA first.

It can connect to the whois.iana.org domain server to get the whois server of a top level domain of a given domain.

Then the class can query the returned whois server to get the information about the actual domain.

If the domain is registered it may return its registrar, owner name and trade name, issue date and expiry date.

Innovation Award
PHP Programming Innovation award nominee
June 2015
Number 11
Whois is a protocol used to query a server and obtain information about a given domain.

Usually that information is provided by a specific whois server depending on the top level domain of the domain you want to query.

The address of the whois server to query for a given top level domain can be discovered by querying a whois server of the IANA organization.

This class queries first the IANA whois server to determine the address of the right whois server to query for a given domain.

Manuel Lemos
Picture of namlengoc
  Performance   Level  
Name: namlengoc <contact>
Classes: 1 package by
Country: United States United States
Age: ???
All time rank: 3279440 in United States United States
Week rank: 411 Up48 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

Example

$lib_whois = new whois();
$domain = "demo.com";
$whois_server = $lib_whois->get_whois_server($domain);
echo "Whois server registry is ".$whois_server;

$whois_domain = $lib_whois->get_info_domain($domain,$whois_server);
echo "whois info domain <pre>".print_r($whois_domain,true)."</pre>";


  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example exmple how to use class whois
Plain text file whois.php Class whois info domain

 Version Control Unique User Downloads Download Rankings  
 0%
Total:496
This week:1
All time:5,846
This week:560Up