Skip to content

refactor(dns): adopt role-based host identities - #2

Merged
viasnake merged 2 commits into
masterfrom
codex/fix-dns-naming
Aug 23, 2026
Merged

refactor(dns): adopt role-based host identities#2
viasnake merged 2 commits into
masterfrom
codex/fix-dns-naming

Conversation

@viasnake

@viasnake viasnake commented Aug 23, 2026

Copy link
Copy Markdown
Member

Problem

Inventory host identities and generated DNS data still used topology-based names, and managed zone serials were fixed. Repository documentation also duplicated mutable infrastructure values.

Changes

  • Derive canonical DNS identities from inventory hostnames and remove legacy records without compatibility aliases.
  • Centralize shared SOA and NS settings instead of checking duplicated zone values.
  • Advance a managed zone serial only when its rendered content changes.
  • Keep README as the only prose document and limit it to setup and targeted execution commands.

Impact

The DNS identity replacement is intentionally breaking. Inventory topology, addresses, service aliases, and recursion policy are unchanged.

DMZからrecursive DNSへのアクセスは現状維持。

mise run check and DNS-host check mode pass. The full site check reaches all DNS hosts but stops at the existing foundation key preflight before DNS roles.

@viasnake
viasnake marked this pull request as ready for review August 23, 2026 22:52
@viasnake
viasnake force-pushed the codex/fix-dns-naming branch from befcd54 to d37b071 Compare August 23, 2026 22:59
Derive canonical host FQDNs from inventory_hostname, replace the authoritative SOA and NS identities, and remove legacy host records without compatibility aliases.

For each managed zone, compare rendered content after normalizing the SOA serial. Preserve the existing serial when content is unchanged; otherwise increment it once modulo the 32-bit RFC 1982 sequence space.
Keep README focused on setup and targeted playbook execution. Keep mutable infrastructure values in inventory and roles, with only the remaining operational constraint documented beside the relevant task.
@viasnake
viasnake force-pushed the codex/fix-dns-naming branch from d37b071 to dca706a Compare August 23, 2026 23:09
@viasnake
viasnake merged commit 3d3992a into master Aug 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant