Repository navigation
fix(lab): keep the DCs' root hints removed across a DNS restart - #1769
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
roles/dns_forwardernow leavescache.dnson each DC holding one comment line, so the root hints it removes stay removed after a DNS restart.verify.ymlchecks the file. Also renumbers #1765's ADR from 0140 to 0141: #1762 took 0140 three minutes earlier, andcheck_docs.pyfails onmainuntil one of them moves.Why
The
bahamutaudit'sverify.ymlrun failed "no root hints" on both DCs.Remove-DnsServerRootHintclears the hints from memory only. The directory's root-hint zone is empty, so the DNS service reloads them fromcache.dnsat start. Onleviathan, a restart took the hints from 0 to 13, and withcache.dnsset 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
UseRootHintfalse the DCs never recursed to the roots, so the resolution path doesn't change; this makesverify.ymltrue after a restart. If it were wrong, a DC would still forward to10.0.30.1, and the originalcache.dnsis the stock Windows file.secrets/*.sops.yamlVerification
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,UseRootHintfalse, resolution working.--checkonbahamut: changed (itscache.dnsis still stock). It has not been applied there.verify.yml --limit leviathan(read-only): both root-hint checks pass. The only failure isspooler 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. Onmainit 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 validatewas not run: 14 GB free on/, and the suite needs about 38 GB.make validatepassesDeployed to the lab and confirmed working (
leviathanonly)Docs updated (
docs/, service README, ordocs/roadmap.md)🤖 Generated with Claude Code