Runbook: the hourly DNSSEC probe#

What the probe's two alarms mean, what to do when one fires, and how to turn the probe on, test it, and take it out again. The decision behind it is ADR-0020.

Status, 25 November 2026: in force. The steps under Turning it on were done the same day: bootstrap-account changed the three policies and terraform-apply added the nine resources; the dnssec-probe-end-to-end test then made the probe report dnssec-failed.org broken, testz-prod-dnssec-chain-of-trust went to ALARM within a minute, a normal run reported testz.dev healthy and it went back to OK, and both emails reached the alert inbox.

What it does#

Every hour at minute 7 (UTC), EventBridge Scheduler runs the Lambda function testz-prod-dnssec-probe. It asks Cloudflare, Google and NextDNS, over DNS-over-HTTPS, for the SOA of dev (a control) and of testz.dev, with the AD bit set. Two resolvers out of three must agree before it reaches a verdict:

VerdictMeaningEffect
healthyTwo resolvers validated the zonetestz-prod-dnssec-chain-of-trust goes to OK
brokenTwo resolvers reported SERVFAIL, no AD flag, or NXDOMAINtestz-prod-dnssec-chain-of-trust goes to ALARM
inconclusiveNeitherNo change to that alarm. Three hours of this is testz-prod-dnssec-probe-silent

Each run writes one log line to /aws/lambda/testz-prod-dnssec-probe with every resolver's answer to both questions. Read that line first.

To find it: CloudWatch console → Log groups → /aws/lambda/testz-prod-dnssec-probe → the latest stream. Each result line starts with {"_aws":. The resolvers field holds, per resolver, vote, control, target and the *_detail text.

testz-prod-dnssec-chain-of-trust is in ALARM#

Treat it as an outage until shown otherwise. Validating resolvers, which serve most of the internet, cannot resolve the domain, or the domain has lost DNSSEC.

  1. Read the latest result line. The target outcomes say which kind:
targetMeansGo to
bogus (SERVFAIL)The chain of trust is broken: the DS no longer matches the key, or signing failed. The domain is down for validating resolversEmergency runbook, triage
insecure (no AD)The DS record is gone from the .dev registry. The domain resolves, without DNSSEC protectionDS runbook. Check the registrar first: did the DS get removed, or the domain transferred?
nxdomainThe domain does not exist in .dev any moreThe registrar: expiry, suspension, or a deleted delegation
  1. Check self_test in the line. If it is true, someone ran the

end-to-end test (below) and the next normal run clears the alarm. A self-test reports dnssec-failed.org as the domain.

  1. Confirm from a second place with the commands in the emergency runbook's

triage section, or by re-running dns-health from Actions. Never trust your own resolver: it may not validate.

The alarm clears itself on the first hourly run that two resolvers validate.

testz-prod-dnssec-probe-silent is in ALARM#

The probe has reached no verdict for three hours, so a broken chain of trust would not be noticed. The domain is not necessarily affected. In order:

  1. Is it running? Lambda console → testz-prod-dnssec-probe → Monitor: are

there invocations in the last three hours? If not, check the schedule (EventBridge → Scheduler → Schedules → testz-prod-dnssec-probe): is it enabled, and does its target still name the function?

  1. Is it failing? Errors or timeouts on the same Monitor tab. The log stream

has the traceback. A timeout means resolvers are slow to answer; the function allows 30 seconds and each question 5.

  1. Is it inconclusive? Result lines with "verdict": "inconclusive" mean too

few resolvers voted. Each resolver's control_detail and target_detail say why: an HTTP error, a timeout, or a control that did not validate. One resolver failing is tolerated; two at once, for three hours, is what this alarm is for. If one resolver has changed for good (stopped validating, stopped answering HTTP/1.1, started filtering), replace it in the module's resolvers variable. ADR-0020 lists the candidates that were tested.

Meanwhile, run dns-health from Actions for a view of the chain of trust.

Turning it on#

Three steps, in this order. The bootstrap layer comes first because the stack cannot create the schedule without it: an apply in the other order fails partway, with the function created and the schedule not.

  1. bootstrap-account from main, plan only, then apply. Actions →

bootstrap-account → Run workflow, main, apply unticked. The plan should update three policies in place and change nothing else: testz-workload-permissions-boundary (gains AllowInvokingProjectFunctions), the apply role's stack-services (gains ProbeSchedules and DnssecProbeSelfTest, and two alarm ARNs in GuardrailAlarmDeliveryTest) and workload-iam-scoped (adds scheduler.amazonaws.com to iam:PassedToService). Then run it again with apply ticked.

Roll back: revert the bootstrap commit on main and run bootstrap-account again. Only after rolling back step 2, or the stack's apply role will no longer be allowed to delete the schedule.

  1. terraform-apply from main. The pull request's plan comment shows what

it will do: nine resources to add under module.dnssec_probe[0] (two roles, two role policies, a log group, the function, the schedule, two alarms), and the one change to the edge API's COMMIT_SHA that every plan showed until ADR-0021. Nothing to change or destroy beyond that.

Roll back: revert the stack commit on main and run terraform-apply. That destroys the nine resources. To silence the probe without an apply: CloudWatch → Alarms → each of the two → Actions → Disable actions; to stop it, disable the schedule in EventBridge Scheduler (the silent alarm will then fire unless its actions are disabled too).

  1. Prove it fails, through the real path. Actions → alarm-delivery-test →

Run workflow, main, alarm dnssec-probe-end-to-end. It invokes the probe in self-test mode (it asks about dnssec-failed.org, which is broken on purpose), waits for testz-prod-dnssec-chain-of-trust to reach ALARM, waits a minute, runs the probe normally, and waits for OK. A green run means resolver → probe → metric → alarm → SNS works; two emails (ALARM, then OK) prove SNS → inbox. The run takes three to ten minutes.

Roll back: nothing to undo. If the run fails halfway, the next hourly run restores the alarm's state.

Expected right after the apply#

testz-prod-dnssec-probe-silent treats missing data as breaching, and a new alarm has three hours of missing data behind it. It may therefore go to ALARM within minutes of the apply and send an email, then to OK after the first hourly run. That pair is expected once. If the OK does not follow within about an hour and a quarter, work through the silent-alarm section above.

Done when#

  • The end-to-end run is green and both emails arrived.
  • An hour later, the log group holds a normal run with "verdict": "healthy".
  • Both alarms are OK.
  • The status lines in this runbook, ADR-0020, 03-dnssec.md, 05-security-posture.md and

the roadmap say in force with the date.

Testing it again later#

The monthly radar review re-runs the alarm-delivery test. Run the dnssec-probe-end-to-end option at the same time. If it ever fails because dnssec-failed.org has stopped being broken (every resolver validates it, so the verdict is healthy), the self-test has lost its target. Choose another deliberately mis-signed zone, change SELF_TEST_DOMAIN in the probe, and say so in ADR-0020.

Built 2026-11-25 from commit 33bfabf6a27d4baeecf228c31bd5d636a3965070. This page was generated from the same source that provisions the infrastructure it describes.