CAA
dig example.com CAA works, while the Windows nslookup tested here rejected CAA as an unknown type.
Monitor
Protect
Manage
By role
Security
Renewals
Monitoring
dig (domain information groper) queries DNS servers from the command line: dig example.com returns the A record, dig example.com MX another type, and dig @1.1.1.1 example.com picks the server. Add +short for just the answer or +trace to follow the delegation from the root.
| Command | What it does |
|---|---|
| dig example.com | Looks up the A record using the resolver in /etc/resolv.conf |
| dig example.com MX | Looks up another record type (AAAA, NS, TXT, SOA, CAA, SRV) |
| dig @1.1.1.1 example.com | Asks a specific DNS server |
| dig example.com +short | Prints only the answer values |
| dig example.com +noall +answer | Prints only the answer section, with TTLs |
| dig +trace example.com | Follows delegation from the root servers down |
| dig -x 8.8.8.8 | Reverse lookup (PTR) for an IP address |
Option behavior from the dig man page. dig comes with the BIND utilities; on Windows use WSL or install them, or use nslookup.
$ dig example.com A
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4711
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
;example.com. IN A
;; ANSWER SECTION:
example.com. 3600 IN A 192.0.2.10
;; Query time: 24 msec
;; SERVER: 1.1.1.1#53(1.1.1.1)NOERROR means success, NXDOMAIN means the name does not exist, SERVFAIL means the server could not complete the lookup.
qr = response, rd = recursion desired, ra = recursion available, aa = authoritative answer. If aa is missing the answer came from a cache.
Name, remaining TTL in seconds, class IN, type and value. Repeat the query and watch the TTL count down to confirm caching.
Which resolver answered. Use @server to compare resolvers or query the authoritative server directly.
dig example.com CAA works, while the Windows nslookup tested here rejected CAA as an unknown type.
dig +dnssec shows RRSIG records, and dig DNSKEY and DS show the keys.
dig +trace shows the root, TLD and authoritative steps in one command.
dig +short output is easy to parse in shell scripts and cron jobs.
You can query one authoritative server at a time, even before the change has spread.
It queries the resolver your machine uses, including internal DNS that web tools cannot reach.
dig is a command-line DNS query tool from the BIND software suite. It sends a query to a DNS server and prints the full response, including the question, answer, authority and additional sections.
Run dig example.com MX. Add +short to see only the priorities and mail server hostnames. To bypass your default resolver add @1.1.1.1 or an authoritative nameserver name.
It makes dig do the resolution itself, starting at the root servers and following each referral down to the authoritative nameserver. It shows exactly which servers were asked and what each one returned.
Not by default. Windows includes nslookup. You can run dig inside WSL, or install the BIND tools for Windows. For quick checks the web based DNS lookup tool gives the same record data.
It prints only the answer values, one per line, such as an IP address or a list of mail servers, with no headers, TTL or flags. It suits scripts and quick checks but hides details you need for debugging.
Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.