Exercise: Perform a WHOIS lookup and DNS lookup using the WHOIS and nslookup tools

  1. Open a terminal in Kali Linux and type “whois <target domain name>” to perform a WHOIS
    lookup for a domain name.
  2. To find out the DNS server associated with a domain name, type “nslookup <target domain
    name>”
  3. 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)
  4. To find out the mail server associated with a domain name, type “nslookup -query=mx
    <target domain name>”
  5. To find out the DNS server associated with a specific IP address, type “nslookup <target IP
    address>”
  6. 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

Open chat
Hello 👋.
Tell me, how can I help you?