A php library to look up the whois servers or a domain.

2.0.0 2022-12-02 15:05 UTC

This package is auto-updated.

Last update: 2024-05-30 00:47:54 UTC


A php library to look up the whois servers of a Top Level Domain.

Source Code Read License PHP Programming Language Download Package Package Download Count Build Status Codecov Code Coverage Psalm Type Coverage Psalm Level


This package facilitates the discovery of the authoritative WHOIS server for top level domains. There are two lists to source the WHOIS server info from; the IANA TLD list and the Public Suffix List.

This project adheres to a code of conduct. By participating in this project and its community, you are expected to uphold this code.


Install this package as a dependency using Composer.

composer require mallardduck/whois-server-list


Simply initialize a locator for the list you'd like to use.

use MallardDuck\WhoisDomainList\IanaServerLocator;

$ianaLocator = new IanaServerLocator();
echo $ianaLocator->getWhoisServer('aarp'); //


The lists used by this package generate using the script in the ./generator directory. This script will download a fresh copy of the list, then look up every TLDs whois server.

To update the list one would simply: clone this repo, run the generator, commit the changes and send a Pull Request.


Contributions are welcome! To contribute, please familiarize yourself with

Copyright and License

The mallardduck/whois-server-list library is copyright © Dan Pock and licensed for use under the terms of the MIT License (MIT). Please see LICENSE for more information.