$ curl cheat.sh/
 cheat.sheets:nslookup 
# nslookup
# Query Internet domain name servers.

# Perform a basic DNS lookup for a domain
nslookup example.com

# Perform a reverse DNS lookup using an IP address
nslookup 192.168.1.1

# Specify a particular DNS server for the query
nslookup example.com 8.8.8.8

# Query a specific type of DNS record (e.g., MX for mail exchange)
nslookup -query=mx example.com

# Set the timeout duration for waiting for a server response
nslookup -timeout=5 example.com

# Specify the type of DNS record, here for acquiring the NS records
nslookup -query=ns example.com

# Use debug mode to show detailed diagnostic information
nslookup -debug example.com

# Change to interactive mode to issue multiple queries
nslookup
# In interactive mode, type `server 8.8.8.8` to use a specific DNS server
# Then, type the domain you want to look up, like `example.com`

 tldr:nslookup 
# nslookup
# Query name server(s) for various domain records.
# More information: <https://manned.org/nslookup>.

# Query your system's default name server for an IP address (A record) of the domain:
nslookup example.com

# Query a given name server for a NS record of the domain:
nslookup -type=NS example.com 8.8.8.8

# Query for a reverse lookup (PTR record) of an IP address:
nslookup -type=PTR 54.240.162.118

# Query for ANY available records using TCP protocol:
nslookup -vc -type=ANY example.com 

# Query a given name server for the whole zone file (zone transfer) of the domain using TCP protocol:
nslookup -vc -type=AXFR example.com name_server

# Query for a mail server (MX record) of the domain, showing details of the transaction:
nslookup -type=MX -debug example.com

# Query a given name server on a specific port number for a TXT record of the domain:
nslookup -port=port_number -type=TXT example.com name_server

$
Follow @igor_chubin cheat.sh