whois flags & options
Basic lookup
Query registration info for a domain.
whois example.com
-h, --host
Specify the WHOIS server to query.
whois -h whois.verisign-grs.com example.com
-p
Connect to a specific port on the WHOIS server.
whois -p 4321 example.com
-H
Hide the legal disclaimer from output.
whois -H example.com
IP address lookup
Look up registration info for an IP address.
whois 8.8.8.8
ASN lookup
Look up an Autonomous System Number.
whois AS15169