- Open a terminal in Kali Linux and type “whois <target domain name>” to perform a WHOIS
lookup for a domain name. - To find out the DNS server associated with a domain name, type “nslookup <target domain
name>” - To find out the IP address associated with a domain name, type “nslookup <target domain
name> 8.8.8.8″ (you can use any DNS server instead of 8.8.8.8) - To find out the mail server associated with a domain name, type “nslookup -query=mx
<target domain name>” - To find out the DNS server associated with a specific IP address, type “nslookup <target IP
address>” - To find out the hostname associated with a specific IP address, type “nslookup <target IP
address> 8.8.8.8″ (you can use any DNS server instead of 8.8.8.8)
Reference:
Whois: https://linux.die.net/man/1/whois
nslookup: https://linux.die.net/man/1/nslookup