Payments are experiencing issues due to temporary restrictions in Russia. If your payment does not go through, please submit a support request.Our support team is available 24/7 — we are always here to help with hosting and server issues.We are now accepting requests for dedicated server rental and colocation services in our data center.Reminder: we recommend enabling backups for additional data protection.A new VPS/VDS lineup with NVMe storage and improved performance is now available.Maintenance work on some servers has been completed. All services are operating normally.
Article3 min readViews1

How to Check a DNS Record with dig and Interpret the Response Correctly

We analyze the record type, response server, status, and TTL: why empty or brief output does not equal a missing domain and when DNS comparison is useful.

Network switch with multiple connected cables
In this article

After migrating a site, one computer loads the new version while another loads the old one. The cause may be DNS, but first you must obtain a verifiable response: which name is being queried, which record type is needed, and which server returned the result. A brief "domain not working" message is too vague for diagnostics.

Specify the name explicitly

This example assumes the dig utility from BIND is installed. Enter the fully qualified domain name after the following command, without the protocol or page path:

read -r TARGET_HOST

dig "$TARGET_HOST" A

The query checks IPv4 records. For IPv6, run a separate check:

dig "$TARGET_HOST" AAAA

The main page name and the name with an additional subdomain may have different records. Do not transfer the output from one check to all site addresses.

Look beyond just the address

A full response requires the status, response section, TTL, and the server the utility contacted. The status for a missing name differs from a successful response with no records of the requested type. For example, the absence of an IPv6 record does not mean the name lacks an IPv4 address.

A request processing error is also not equivalent to a missing domain. It may relate to zone maintenance, DNSSEC validation, or dependency unavailability. To draw correct conclusions, preserve the full status rather than just an empty string from the abbreviated mode.

A compact option for an already clear situation

When the context is known, the response can be shortened, leaving only comments and records:

dig "$TARGET_HOST" A +noall +answer +comments

This option is convenient for comparison but does not replace full diagnostics for an unknown error. If you need to check another DNS server, use it only with a clear reason and authorized access. A public resolver cannot see an internal corporate zone any more than a corporate resolver can.

How to interpret TTL

TTL relates to the response caching time. Reducing the value in the zone does not instantly erase previously cached responses across all caches. Therefore, during a migration, you must account for settings before the change, rather than promising all users an immediate switch at a specific second.

Example: two resolvers return different addresses after a record change. Record their responses, timestamps, and TTLs, then compare them with the zone's authoritative data. The discrepancy may stem from caching, but also from different configurations or geographic responses. Without these details, you cannot confidently identify the cause.

DNS does not verify the website itself

Even a correct address does not confirm that the web server accepts connections and serves the intended virtual host. After DNS resolution, you must separately verify the connection, the certificate, and the application response. Conversely, a page accessible via IP does not prove the correctness of DNS or the domain name routing.

To submit a ticket to support, save the name, record type, status, resolver address, and check timestamp. After making changes, repeat the query in the same environment. This data set helps distinguish a zone error from a cache issue or a problem entirely outside DNS.

When comparing responses, preserve the display case separately from the name's meaning and pay attention to the alias chain. The final address may belong to the CNAME target rather than being a direct record of the original name.

Discussion 0

Share your experience and ask questions. Comments without links appear after editorial review.

No comments yet. Start the discussion.