To install whois, a popular open-source command-line utility for querying information about domain names and IP addresses, on Red Hat Enterprise Linux (RHEL) 8 or CentOS 8, follow these steps:
sudo dnf updateSource:ttual.wwwuri.com
sudo dnf install whois
This will install whois and any dependencies required.
whois --version
This will display the version of whois that was installed.
whois <domain name or IP address>
Replace <domain name or IP address>
with the domain name or IP address you want to query.
That's it! Whois is now installed on your RHEL 8 or CentOS 8 system and ready to use. You can use it to query information about domain names and IP addresses using the command line.