- Open a terminal in Kali Linux and type “nmap –script whois-ip <target IP address>” to
perform a WHOIS lookup for an IP address. - To perform a WHOIS lookup for a domain name, type “nmap –script whois <target domain
name>” - To find out the owner of the IP address, type “nmap –script whois-ip –script-args whois-
ip.detail=1 <target IP address>” - To find out the email addresses associated with a domain name, type “nmap –script whois —
script-args whois.email=1 <target domain name>” - To find out the registrar, type “nmap –script whois –script-args whois.registrar=1 <target
domain name>” - To find out the creation and expiry date of a domain name, type “nmap –script whois —
script-args whois.creationdate=1,whois.expirationdate=1 <target domain name>”
Reference:
Nmap: https://nmap.org/book/man.html