Networking · 6 min read

DNS Synthetic Monitoring: Detect Wrong Answers Before Customers Report an Outage

Build a small, measurable DNS probe matrix that checks answer correctness, transport, validation and alert delivery across approved network locations.

Publisher: NetSignalKit Editorial | Corrections and feedback

Independent technical information. Validate vendor claims and test changes in your own environment. Some outbound commercial links may earn a commission; see our disclosure.

Monitor the DNS contract, not just whether port 53 responds

A DNS server can respond quickly and still return the wrong answer. For an online store or business portal, the useful question is whether the intended audience receives an acceptable response for the hostname and record type it actually uses. A one-off troubleshooting command helps during an outage; a recurring synthetic probe catches changes before an operator starts investigating. Define the expected answer set, response code, permitted network view, resolver, and response time budget for each critical name. A valid answer for an internal VPN client can differ from the answer for a public customer. Do not alert simply because two views disagree.

For a small team, begin with two or three names you own, rather than measuring hundreds of records. Include a customer-facing hostname, an internal service if appropriate, and a dedicated test name for validation. Record the owner of each expectation. If a CDN deliberately varies IP addresses, check a suitable invariant such as the permitted response class or approved alias target, not a fixed IP that the provider never promised.

Build a repeatable probe matrix

Use an internal probe on the network where staff consume the service and an external probe on an approved location independent of your office connection. If customers span regions, choose a second external location that reflects a meaningful audience. Run each test against its intended recursive resolver. Separately query your verified authoritative nameservers when direct access is appropriate. These are different measurement paths; label them rather than blending their results into one uptime percentage.

RFC 7766 requires general-purpose DNS implementations to support both UDP and TCP. A small answer received over UDP is not proof that the TCP path works. Test both transports on the classic DNS paths you operate. For a service using DoH or DoT, measure its actual transport separately instead of treating port 53 as a substitute.

  • Recursive check: expected name, type, response class and acceptable answer; record resolver and vantage point.
  • Authoritative check: expected zone response and flags from each verified authoritative endpoint; avoid comparing unrelated DNS views.
  • UDP and TCP checks: measure separately; with dig available, repeat the approved query using +tcp. Do not mistake UDP truncation followed by successful TCP fallback for a failure of DNS as a whole.
  • DNSSEC check: query a signed test name via your trusted validating resolver. Record validation outcome and the resolver used. The AD flag is an assertion from the responding resolver; do not treat it as independent proof on an untrusted path.
  • Application check: validate normal HTTPS access separately using the actual service name, certificate verification and expected application status.

Measure errors and latency without hiding missing observations

Use the fraction of planned probe observations that return acceptable results as the starting availability signal. Track timeouts, unacceptable DNS answers, missing probe executions, and successful responses as distinct outcomes. A missing measurement is not a successful query; neither should it automatically be counted as an observed DNS outage. Report sample coverage next to the success rate. Track p95 latency for successful observations by path and separate the failure count. With a small sample, percentile estimates are noisy; keep the sample size visible. Monitor query demand and resolver saturation from existing internal metrics where available.

The Google SRE monitoring chapter separates customer-visible behavior from internal metrics and treats latency, errors, demand and saturation as important signals. For a small team, start with a clear failure alert and a latency trend rather than building a large monitoring stack. Establish a normal range over representative business and maintenance periods before choosing thresholds. A threshold is an operational decision, not a number prescribed by the DNS standards.

A worked alert decision using synthetic observations

Illustrative example, not measured NetSignalKit or vendor data: during five minutes, two external probes each run one check per minute against the same approved hostname. All ten checks execute. Nine return the approved answer; one times out. The observed pass fraction is 9/10, or 90%. A single timeout followed by recovery should open a low-priority observation in this example, not automatically page the entire team. If both independent probes return an unacceptable answer for three consecutive scheduled rounds, page the service owner and record the six observations. An internal probe should have its own expectation and escalation path.

If one external collector stops reporting, the coverage metric will fall even if the other collector reports success. Investigate the collector and its network before claiming DNS is healthy everywhere. If only TCP checks fail while UDP small-answer checks succeed, investigate the TCP path and related network policy. If every DNS check passes but HTTPS fails, route the alert to the application or TLS investigation rather than changing the DNS zone. The example thresholds illustrate a policy, not a universal service-level objective.

Test changes and prove the alert reaches a human

Keep a low-risk test record in an owned test zone. Run the same probes before and after a planned DNS change. A record-specific freshness test can be added if you need evidence about propagation delay: Cloudflare's engineering article describes a provider-scale example using a changing TXT value and separate authoritative and recursive freshness expectations. For a smaller deployment, choose the test interval and freshness budget according to your actual TTL and cache behavior. Do not update a customer-facing record just to test monitoring.

In an isolated test zone or with a synthetic test response, simulate one incorrect answer, a timeout, and a stopped collector. Confirm the monitor records the right failure classes, sends a notification to the responsible operator, and clears the alert when the expected behavior returns. Avoid exposing internal names to an external monitoring provider. Use read-only credentials for checks; if freshness testing needs write access, constrain it to the dedicated test record. Do not grant zone-wide modification rights to a general monitoring process.

What to keep in the runbook

  • Expected answer and DNS view, owner, resolver address, transport and authorized probe location.
  • Observation timestamp, result class, latency, sample coverage and the reason an alert fired.
  • Baseline change date, approved exception or maintenance window, and notification delivery evidence.
  • Link the alert to the existing DNS incident playbook. Reassess expectations after resolver, DNSSEC, CDN or delegation changes.
  • Treat this article as a design and test guide. The worked values are synthetic; operational performance and alert effectiveness must be measured in your own deployment.

Related guides

Primary sources & further reading

Sources are credited for verification, not reproduced. Linked pages may change after publication.