Skip to content

fix(lab): keep the DCs' root hints removed across a DNS restart - #1769

Merged
Gerrrt merged 1 commit into
mainfrom
gerrrt/dns-root-hints-persist
Nov 26, 2026
Merged

Gerrrt merged 1 commit into
mainfrom
gerrrt/dns-root-hints-persist

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 26, 2026

Copy link
Copy Markdown
Owner

What changed

roles/dns_forwarder now leaves cache.dns on each DC holding one comment line, so the root hints it removes stay removed after a DNS restart. verify.yml checks the file. Also renumbers #1765's ADR from 0140 to 0141: #1762 took 0140 three minutes earlier, and check_docs.py fails on main until one of them moves.

Why

The bahamut audit's verify.yml run failed "no root hints" on both DCs. Remove-DnsServerRootHint clears the hints from memory only. The directory's root-hint zone is empty, so the DNS service reloads them from cache.dns at start. On leviathan, a restart took the hints from 0 to 13, and with cache.dns set aside a restart gave 0. A missing file also gives 0 hints, but the service logs errors 1000, 1004 and 1501 at every start. A comment-only file starts clean. Refs #449.

The ADR renumber follows check_docs.py's own rule: renumber the one that landed second, which was #1765. The changelog entry that names ADR-0140 is a record, so a new entry corrects it.

Blast radius

Both DCs' DNS service, at their next start. With UseRootHint false the DCs never recursed to the roots, so the resolution path doesn't change; this makes verify.yml true after a restart. If it were wrong, a DC would still forward to 10.0.30.1, and the original cache.dns is the stock Windows file.

  • No change to network segmentation or firewall rules
  • No new port published to a VLAN that could not already reach the service
  • No credential added outside secrets/*.sops.yaml

Verification

  • On leviathan, the role was applied from this branch, then run again with --check: changed=1, then changed=0. A DNS restart afterwards: 0 hints before and after, UseRootHint false, resolution working.

  • --check on bahamut: changed (its cache.dns is still stock). It has not been applied there.

  • verify.yml --limit leviathan (read-only): both root-hint checks pass. The only failure is spooler matches its toggle, because fix(lab): decide what the bahamut audit found (ADR-0140) #1765's tags have not been applied yet.

  • python3 scripts/check_docs.py: OK. On main it fails three ways (the duplicate ADR-0140 and README's two ADR counts).

  • ansible-playbook --syntax-check lab-domain.yml verify.yml: OK.

  • ./scripts/lint.sh: passed with 8 checks skipped, not run: ruff, actionlint, zizmor, ansible-lint and editorconfig-checker. yamllint isn't installed here either; the line-length limit was checked by hand. CI runs them all.

  • make validate was not run: 14 GB free on /, and the suite needs about 38 GB.

  • make validate passes

  • Deployed to the lab and confirmed working (leviathan only)

  • Docs updated (docs/, service README, or docs/roadmap.md)

🤖 Generated with Claude Code

dns_forwarder removed the hints from memory only; the service reloads
them from cache.dns at start. Leave the file holding one comment line
and have verify.yml check it. Also renumber #1765's ADR to 0141, since
#1762 took 0140 first and check_docs.py fails on main.

Refs #449

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt
Gerrrt merged commit 55823c7 into main Nov 26, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the gerrrt/dns-root-hints-persist branch November 26, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant