Check your DNS records with online tools and dig
Checking DNS from your own computer shows what the world sees. You can use a terminal or a website. Both give the same information.
Using dig (macOS and Linux)
dig is installed on macOS and most Linux systems. On Windows, use nslookup or install it with WSL.
Basic lookups
dig +short example.ca A
dig +short www.example.ca CNAME
dig +short example.ca MX
dig +short example.ca TXT
dig +short example.ca NS
dig +short example.ca CAA
Sample output:
203.0.113.25
example.ca.
0 example.ca.
"v=spf1 +a +mx +ip4:203.0.113.25 include:… ~all"
gordon.barbrick.ca.
hugh.barbrick.ca.
douglas.barbrick.ca.
Full answer with TTL
dig example.ca A
;; QUESTION SECTION:
;example.ca. IN A
;; ANSWER SECTION:
example.ca. 3600 IN A 203.0.113.25
;; Query time: 24 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
The ANSWER SECTION is what you want. The number is the TTL left. The SERVER line shows which resolver answered.
Ask a specific server
dig example.ca A @gordon.barbrick.ca
dig example.ca A @1.1.1.1
dig example.ca A @8.8.8.8
Asking gordon.barbrick.ca shows the real record, ignoring caches. Asking 1.1.1.1 or 8.8.8.8 shows what the public sees.
Follow the whole chain
dig +trace example.ca
This starts at the root servers and follows delegation down to your nameservers. Use it to find where a delegation is wrong.
Reverse lookup
dig -x 203.0.113.25 +short
mail.example.ca.
Using nslookup (Windows, macOS, Linux)
nslookup example.ca
nslookup -type=MX example.ca
nslookup -type=TXT example.ca
nslookup -type=NS example.ca
nslookup -type=TXT example.ca 1.1.1.1
Sample output:
Server: 1.1.1.1
Address: 1.1.1.1#53
Non-authoritative answer:
example.ca mail exchanger = 0 mail.example.ca.
"Non-authoritative" means the answer came from a cache. That is normal.
Using a web tool
Search for "DNS lookup" or "DNS propagation checker". Type your domain, choose a record type, and review. Propagation checkers query many resolvers worldwide. If most show the new value, you are done.
Read the results
| Result | Meaning |
|---|---|
| An IP address | The record exists |
| Nothing (empty output) | No record of that type. Check the name and type. |
NXDOMAIN |
The name does not exist at all |
SERVFAIL |
The nameservers are broken, unreachable, or DNSSEC failed. See DNSSEC. |
status: NOERROR with no answer |
The name exists, but not that record type |
| Different answers from different servers | Propagation or caching. See DNS propagation. |
Common checks
| Question | Command |
|---|---|
| Are my nameservers Barbrick's? | dig +short NS example.ca |
| Where does my email go? | dig +short MX example.ca |
| Is SPF published? | dig +short TXT example.ca |
| Is DKIM published? | dig +short TXT default._domainkey.example.ca |
| Is DMARC published? | dig +short TXT _dmarc.example.ca |
| Does it match on our server? | dig example.ca @gordon.barbrick.ca |
Send us the output
When you open a support request, include the command and its full output. See What to include when you ask for help.
Still stuck? Ask us and we'll walk you through it.