Some notes for using nslookup interactively to verify and debug DNS records.
- server 18.104.22.168
- # point to different DNS server with “server x.x.x.x” command
- # popular public servers include 22.214.171.124, 126.96.36.199, 188.8.131.52, 184.108.40.206 (google & opendns)
- # change lookup record type with “set type=xxx” command
- # important record types include: A, PTR, MX, TXT, CNAME, …
- # reverse IP-to-name records of type PTR have the form below (example IP 192.168.222.111, reverse and append “.in-addr.arpa.”)
- set type=PTR
- # ALWAYS use a trailing dot at the end of fully-qualified-domain-names (FQDN’s)
- set all
- # use “set all” to view current nslookup settings (server, record type, etc)
These examples assume the MS Windows version of nslookup. Most of the syntax will be the same on Linux systems.