DNS & domains · Local calculator

DNS Record Comparison

Compare two pasted sets of DNS record data locally and identify entries unique to each set. When a new hostname works for one user and fails for another, write down the complete question, resolver and time. Two answers can both be consistent with DNS if one resolver still holds an earlier positive or negative response.

Inputs

Result

Distinct text values
3
Identical sets
No
Calculated or matching entries
RDATA textMembership
192.0.2.1First only
192.0.2.2Both
192.0.2.3Second only

Exact text comparison ignoring outer whitespace, duplicates and line order. Equivalent DNS data can have different presentations.

In this guide12 sections

Introduction

Compare two pasted sets of DNS record data locally and identify entries unique to each set. When a new hostname works for one user and fails for another, write down the complete question, resolver and time. Two answers can both be consistent with DNS if one resolver still holds an earlier positive or negative response.

Formula and calculation

Compare two DNS data sets
first only = A − B; shared = A ∩ B; second only = B − A

The local comparison treats each trimmed line as text, removes duplicates, and ignores line order. Semantically equivalent DNS RDATA can still have different text presentations.

A · text values
distinct non-empty lines in the first input
B · text values
distinct non-empty lines in the second input

Method and concepts

Record the fully qualified name, class and record type. An A question asks for IPv4 data. An AAAA question asks for IPv6. A name may have one family only. A search suffix can also expand a short label differently on two clients.

  1. Enter the quantities in the units or notation shown by the input labels.
  2. Calculate and compare the output with the worked example.

Troubleshooting DNS answers and delegation diagram

  1. Client question
  2. Resolver cache
  3. Parent referral
  4. Authoritative answer
An unexpired cached response can satisfy a question before any contact with the parent or child authority.

Worked examples

Find an address removed from a set

  1. Enter 192.0.2.1 and 192.0.2.2 on separate lines in the first set. Enter only 192.0.2.2 in the second.
  2. The .1 record occurs only in the first set. The .2 record occurs in both.

Troubleshooting DNS answers and delegation: Explain two answers during a record change

  1. At 09:00 a resolver caches an A record pointing to 192.0.2.20 with TTL 600. At 09:03 the authority changes it to 192.0.2.30.
  2. At 09:05 the first resolver can still return .20 with roughly 300 seconds remaining. A second resolver with an empty cache may already obtain .30.
  3. At 09:10 the first cached entry reaches ordinary expiry. If differing answers persist, compare the resolver view, authoritative server, record type and any stale-answer policy before modifying the zone.

Reference table

DNS Record Comparison reference
ResultReadingEvidence to compare
NXDOMAINName errorSpelling, search suffix and negative TTL
NOERROR, NODATARequested type absentOther record types at the same name
SERVFAILResolver could not finishValidation or upstream error details
Old addressEarlier data still visibleCache time, TTL and authority
TimeoutNo timely responseResolver and network event timestamps

Reading the result

A positive TTL sets a cache lifetime in seconds under ordinary caching. A negative answer can also be cached. For an authoritative NXDOMAIN or NODATA response carrying an SOA, its negative caching TTL comes from the lesser of the SOA record TTL and its MINIMUM field.

Common mistakes

  • Treating every empty answer section as NXDOMAIN. A referral also has a different interpretation.
  • Repeatedly editing a correct authoritative record while clients are serving an earlier cached value.

Frequently asked questions

Why would creating a previously missing name take time to appear?

A resolver may have cached the earlier negative answer. Inspect its negative TTL and original lookup time as well as the newly published data.

Can two valid answers differ indefinitely?

Yes. Split DNS and location-dependent answers can deliberately vary by resolver or client context. Compare against the zone owner's intended view.

What does NXDOMAIN tell me?

It indicates that the queried name does not exist according to the response path. It differs from NODATA, where the name exists but the requested record type is absent.

Why can two resolvers return different records?

They may have different cache ages, query different authoritative paths, or observe a record change at different times. Compare the exact name, type, resolver, response code, timestamp, and TTL.

Does flushing a local cache change authoritative DNS?

No. It clears a cache on that device or resolver. It does not modify zone data or clear caches held by other recursive resolvers.

How long does DNS propagation take?

There is no single worldwide timer. Existing positive or negative cache entries can remain until their TTLs expire, and resolvers refresh at different times. Compare named resolvers rather than claiming universal propagation.

What is the difference between SERVFAIL and NXDOMAIN?

NXDOMAIN reports that the name does not exist. SERVFAIL means the resolver could not complete the query successfully, which can result from upstream, DNSSEC, or server problems.

Why should I query the authoritative server directly?

It can help distinguish published zone data from a recursive resolver's cached response. Direct queries still need the correct authority and may not reflect client-specific resolver behavior.

Can a low TTL remove all stale DNS answers immediately?

No. A lower TTL affects compliant cache duration after the record is observed. Older cached data, negative caching, and application caches may still influence what a client sees.

What is a CNAME chain?

It is a sequence of aliases followed by the eventual requested data. Long or broken chains can increase lookup work or produce resolution failures, so inspect each target and its records.

What does a DNS timeout mean?

It means no usable response arrived within the client's wait period. It does not by itself distinguish a network path problem, blocked query, unresponsive resolver, or delayed upstream lookup.

How does a resolver cache negative answers?

Resolvers can cache that a name or record type was absent for a duration derived from negative-caching rules and zone data. A newly added record may therefore not appear immediately.

What should be compared during a DNS propagation check?

Compare the exact owner name, record type, resolver, response status, answer data, TTL, and observation time. A sample of recursive resolvers cannot establish universal global state.

Can an incorrect parent delegation cause SERVFAIL?

Yes. Missing or inconsistent name-server delegation, unreachable authorities, or DNSSEC problems can prevent a recursive resolver from obtaining a valid answer.

Should I clear every cache when debugging DNS?

Start by identifying which cache is stale: application, operating system, local resolver, recursive service, or authoritative data. Clear only the relevant cache when authorized; flushing a client does not change zone data.

Further learning and references