whois
queries the WHOIS server to provide all saved records.whois
provides us with:
whois
query, we find the authoritative name servers.It uses the default DNS server to get the A and AAAA records related to domain.
It provides a lot of query options and even allows us to specify a different DNS server to use.
For example - We can use Cloudflare DNS server:
$ dig @1.1.1.1 tryhackme.com