Install libnet-xwhois-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libnet-xwhois-perl
Whois Client Interface for Perl5
The Net::XWhois class provides a generic client framework for doing Whois queries and parsing server response. . One of the more important goals of this module is to enable the design of consistent and predictable interfaces to incompatible whois response formats. The Whois RFC (954) does not define a template for presenting server data; consequently there is a large variation in layout styles as well as content served across servers.