nslookup online: look up records without a command line
With nslookup or dig you ask a DNS server from your own computer. The lookup here does the same online: you enter a domain and get the records of all common types at once, asked from several locations.
Your computer asks the resolver of your network and sees its cache. If your answer differs from the one here, that cache is often the reason, not the zone.
- nslookup example.com
- Looks up the addresses of the domain, that is A and AAAA. With “All”, the lookup here adds MX, NS, TXT, SOA and CAA.
- nslookup -type=mx example.com
- The same as the MX type: the mail servers of the domain.
- nslookup -type=txt example.com
- The same as the TXT type, for example for SPF and verifications.
- dig +trace example.com
- The same as the Delegation mode: the path from the root zone to the answer.
The record types and what they are for
Every type answers a question of its own. If one is missing or points nowhere, usually only part of the setup fails: the website, email or the issuing of certificates.
- A and AAAA
- The IPv4 and IPv6 address of a name. If they point to an old address, visitors end up at the wrong server. The IP lookup shows who an address belongs to.
- CNAME
- Turns a name into an alias of another name. A name with a CNAME cannot have any other records, not even MX or TXT.
- MX
- The mail servers of the domain. The lower number takes precedence. An MX points to a name with an address of its own, not to an IP address and not to a CNAME.
- NS
- The name servers in charge of the zone. They should match the delegation at the registry, which the Whois lookup shows.
- SOA
- The administrative data of the zone: primary name server, contact, serial number and timers for syncing between the name servers. The last value governs how long resolvers remember that a name does not exist.
- TXT
- Free text for verifications and policies. This is where SPF lives, the list of servers allowed to send mail on behalf of the domain. DKIM and DMARC sit under names of their own, not on the domain itself.
- CAA
- Says which certificate authorities may issue certificates for the domain. Without CAA, any of them may. If your own authority is missing from the list, issuance fails. The SSL check tests the certificate itself.
A name can have several records of the same type, such as several A records for several servers. Resolvers then return all of them, often in changing order.
Check DNS propagation: has the change reached everywhere?
After a DNS change it takes a while until every resolver returns the new answer, because each one keeps the old answer until its TTL runs out. The DNS propagation checker therefore asks many public resolvers for the same record, from every location, and puts the answers side by side.
The majority answer is at the top. A resolver that differs is marked, and the TTL next to it says how long it can keep the old answer at most. A resolver that does not answer at all, or answers with REFUSED, tells you something about that resolver, not about your domain.
If the name servers of the zone already hand out different answers themselves, for example with GeoDNS or a rotating pool, differences are normal. The notes below the result say so. What the name servers themselves say is shown in the Nameservers mode.
Why locations see different answers
When the locations get different answers, there are three common reasons.
- Different on purpose
- GeoDNS and CDNs answer with a different address depending on where the query comes from, so that visitors reach a server near them.
- Old answer in the cache
- After a change, resolvers keep serving the old answer until its TTL runs out.
- Name servers out of sync
- If one of the name servers of the zone has an old copy, the answer depends on which one the resolver happens to ask. The Nameservers mode shows the SOA serial of every server.
If a website only loads for some visitors because of this, the website check shows which locations reach it.
TTL: how long a change takes
After a change, every resolver keeps the old answer until its TTL runs out and only then asks again. So the TTL that applied before the change determines the longest wait.
The TTL in the result is the time left in the resolver's cache. It counts down, which is why it is often lower than the value set in the zone. Resolvers also remember for a while that a name does not exist. How long follows from the SOA of the zone.
Why DNS problems are easy to miss, and how a DNS check keeps watch over time, is explained in the guide to uptime monitoring.
Check name servers: do all of them answer, with the same copy?
A domain has at least two name servers so that it stays reachable when one fails. The Nameservers mode asks each of them directly, the way a resolver does, and shows the response time, the SOA serial and whether the server supports TCP and EDNS.
- No answer
- Resolvers that pick this server wait for the timeout and then ask the next one. The domain stays reachable but answers more slowly.
- Not authoritative
- The server answers but does not know the zone. That is called a lame delegation.
- Different SOA serials
- One server has a different copy of the zone than the others. With two independent DNS providers, each counts on its own, and that is normal.
- Delegation differs
- The registry lists other name servers than the zone itself. Resolvers then use one list or the other.
- No TCP or EDNS
- Large answers, such as ones with DNSSEC signatures or long TXT records, do not fit into a small UDP packet. EDNS allows larger packets and TCP carries the rest. If either is missing, such answers arrive more slowly or not at all.
The Whois lookup also shows which name servers the registry has on file for your domain.
DNS delegation: the path from the root zone to the answer
A resolver does not know the answer by itself. It first asks a root server, which refers it to the servers of the top-level domain, such as de or com. Those refer it to the name servers of the domain, and only these return the answer. The Delegation mode follows this path step by step, like dig +trace.
If the chain breaks, the result says at which zone: the top-level domain refers to servers that do not answer, or to servers that do not know the zone. Each step also says whether the parent zone publishes a DS record for DNSSEC.
If the name is an alias (CNAME) into another zone, the search starts again there. The chain shows that as well.