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: 494 All time: 5,851 This week: 154Up
Version License PHP version Categories
whois-info-domain 1.0The PHP License4.0Networking


This class can get domain whois information checking IANA first.

It can connect to the 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: 3279439 in United States United States
Week rank: 438 Up47 in United States United States Up
Innovation award
Innovation award
Nominee: 1x


$lib_whois = new whois();
$domain = "";
$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  
This week:0
All time:5,851
This week:154Up