This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Dns

Project-owned DNS declarations for alwaldend.com

DNS records live in each owner’s dns/dnsconfig.json. Each owner manages its records through the reusable Terraform DNS module from a dedicated DNS root with independent state and DNS-only credentials. DNS-only roots moved from tf/ to dns/ keep their existing backends. This component’s dnsconfig.json owns shared apex and mail records.

The public apex follows download.alwaldend.com to the Yandex download host. The dc1 apex continues to use the local download VM. The activation record documents the authorized cutover and HTTPS acceptance.

This diagram describes the maintained architecture source, not live inventory or service health. The Mermaid source is authoritative; Bazel renders its light and dark SVGs.

DNS architectureDNS architecture

Cloudflare DNS and Mikrotik DNS list the records this repository declares for each destination view, with the owning declaration for every record. They are manually refreshed snapshots of dnsconfig.json and may lag behind the declarations. Regenerate them explicitly when a documentation refresh is wanted, for example after parallel DNS changes have merged:

bazel run //infra/dns/cmd/dump -- --write

Ordinary validation checks declarations and ownership without requiring or rewriting these snapshots. A DNS change does not require a documentation refresh in the same PR. To explicitly check snapshot freshness, run bazel run //infra/dns/cmd/dump -- --check.

bazel run //infra/dns:lint

The linter discovers dnsconfig.json files in the current workspace at runtime and prints their DNS declarations as a table. It includes nested project workspaces and excludes task scratch, tool caches, and generated directories. There is no central source registry to maintain when a project adds a file.

A canonical domain name must belong to one source file. Multiple values, record types, and destination views within that file are valid. Duplicate JSON object keys and domains declared by different source files are errors. The command reads checked-in declarations without contacting Terraform backends or DNS providers.

bazel test //infra/dns:config_test runs the linter’s fixture tests and checks every DNS declaration in the current checkout. The repository test resolves the root MODULE.bazel runfile to the checkout and runs without sandboxing or cached test results so newly added files and nested workspaces are included on every run. It only reads local files.

The provider-free normalization module owns the Terraform input schema, relative-name handling, TTL defaults, and stable resource keys. Each logical key can contain several record-type members; dsp selects global, dc1, or all. Explicit member TTLs preserve shared apex and mail settings. The normalization module remains an internal dependency of each owner’s Terraform DNS module.

Owner-local roots receive their provider credentials and Vault HTTP state backend through the existing AL configuration. Standalone roots can use the infra_terraform_dns macro to package their Terraform configuration and Bazel commands. The shared module resolves the Cloudflare zone by name when no optional zone ID is provided. DNS and ingress reuse the RouterOS endpoint declared in the shared AL configuration, while their separate credentials remain in Vault. Neither integration requires adding metadata fields to the existing credential entries. Validate their source with the owning package’s offline checks. A live plan, import, apply, or state operation requires separate authorization for that owner and operation.

Run tf.plan and interactive tf.apply from the owner’s DNS package. Service commands retain their own AL settings, providers, and backends.

The consolidation change introduces independent roots for the owners below. Each new root uses the same AppRole and a distinct tf_backend/dns path under that AppRole. Freeze both writers before using the new revision. Complete the state transfer before running ordinary plan or apply from this revision. A DNS plan against a fresh backend can propose creation. A service plan against its old state can fail or propose removal. Use the prior revision to inspect and relinquish the old bindings.

OwnerPrevious root
Flux//infra/flux/tf_setup
Forgejo//infra/forgejo/tf_setup
Harbor//infra/harbor/tf_setup
Ingress//infra/ingress/tf
OpenHands//infra/openhands/tf_setup
Proxmox//infra/pve/tf
3x-ui//infra/threexui/tf_setup
Vault//infra/vault/tf_setup
Xen Orchestra//infra/xcp_ng/tf
alwaldend.com//projects/alwaldend.com/tf
  1. Obtain explicit authorization for the source state removal and the destination imports for one owner. Freeze all writers to both backends, record the prior deployed revision, and verify an independent recovery path for infrastructure endpoints.
  2. Inspect both states using their owning wrappers. Verify the destination is absent or empty, and check each managed source DNS address and exact provider ID against the declaration and provider inventory. Cloudflare imports use zone_id/record_id. RouterOS imports use the static row ID. Keep that inventory private and preserve a recoverable KV version of the original state.
  3. From the prior revision, use the previous root’s state target to review rm -dry-run module.dns. Require every address to match the reviewed DNS inventory or a DNS data source under the same module. Run the separately authorized state removal and verify the scope. The previous revision retains the provider configuration needed to inspect the original bindings.
  4. In the new dns/ root, import each reviewed provider ID at the same Terraform address with tf.import -- <address> <id>. If an import fails, inspect both states before resuming and import only the missing bindings.
  5. Review a fresh DNS tf.plan and a service plan against the new revision. Require zero DNS additions, changes, replacements, or deletions in both. Verify provider IDs and authoritative DNS answers, then release the writer freeze.

If a transfer cannot finish, keep both writers frozen. Reconcile back to a single owner using the reviewed state inventory and the prior revision before resuming normal operations.

The migration change and cutover runbook describe adoption, imports, recovery, and retirement requirements. Each owner’s adoption change records its verified live transfer; source implementation alone does not establish operational ownership. The completed coordination record links the operational acceptance evidence and its coverage limits.

Current source no longer exposes the central DNSControl deployment commands. Before an owner begins Terraform reconciliation, stop central deployment jobs identified by the active and scheduled writer audit. Record coverage and unavailable observations, and coordinate one owner at a time. Adopt existing records into the owner’s state with an exact-ID, no-change plan. Fresh complete inventories may establish missing declarations for a separately reviewed additions-only plan that preserves all existing records. Rollback requires stopping the affected Terraform writers and following the runbook’s recorded prior revision and state-reconciliation procedure.

Deployment snapshots are not maintained here. The declaration pages above reflect their last manual refresh; each owner’s declarations remain the authoritative inventory.

1 - Cloudflare DNS

Records declared for the public zone served by Cloudflare

Every record this repository declares for the public zone, which Cloudflare serves.

This page is generated from the declarations; run bazel run //infra/dns/cmd/dump -- --write after changing them. The authoritative source is each owner’s dnsconfig.json.

DomainTypeTTLValueDeclaration
@A300185.199.108.153infra/dns/dnsconfig.json
@A300185.199.109.153infra/dns/dnsconfig.json
@A300185.199.110.153infra/dns/dnsconfig.json
@A300185.199.111.153infra/dns/dnsconfig.json
@AAAA3002606:50c0:8000::153infra/dns/dnsconfig.json
@AAAA3002606:50c0:8001::153infra/dns/dnsconfig.json
@AAAA3002606:50c0:8002::153infra/dns/dnsconfig.json
@AAAA3002606:50c0:8003::153infra/dns/dnsconfig.json
@MX30010 mail.protonmail.ch.infra/dns/dnsconfig.json
@MX30020 mailsec.protonmail.ch.infra/dns/dnsconfig.json
@TXT300_globalsign-domain-verification=0QBJgVV_uwcFLTi1Rot3bb1LyJ5uW1WD0ygvIS4OM5infra/dns/dnsconfig.json
@TXT300protonmail-verification=bdcd133d3f472fa17f66328950d02fbeae1bef75infra/dns/dnsconfig.json
@TXT300v=spf1 include:_spf.protonmail.ch ~allinfra/dns/dnsconfig.json
_dmarcTXT300v=DMARC1; p=quarantine; adkim=sinfra/dns/dnsconfig.json
_dmarc.simpleloginTXT10800v=DMARC1; p=quarantine; pct=100; adkim=s; aspf=sinfra/dns/dnsconfig.json
canvas.openhandsCNAMEdefaultingress.alwaldend.com.infra/openhands/dnsconfig.json
cloudCNAMEdefaultingress.alwaldend.com.infra/nas/dnsconfig.json
dc1.automation.openhandsAdefault192.168.10.92infra/openhands/dnsconfig.json
dc1.canvas.openhandsAdefault192.168.10.90infra/openhands/dnsconfig.json
dc1.cloudAdefault192.168.1.209infra/nas/dnsconfig.json
dc1.host-bot.simeonwarren.usersAdefault192.168.1.210users/simeonwarren/host_bot/dnsconfig.json
dc1.server.openhandsAdefault192.168.10.91infra/openhands/dnsconfig.json
dc1.t3code.host-bot.simeonwarren.usersAdefault192.168.1.210users/simeonwarren/host_bot/dnsconfig.json
dkim._domainkey.simpleloginCNAME10800dkim._domainkey.simplelogin.co.infra/dns/dnsconfig.json
dkim02._domainkey.simpleloginCNAME10800dkim02._domainkey.simplelogin.co.infra/dns/dnsconfig.json
dkim03._domainkey.simpleloginCNAME10800dkim03._domainkey.simplelogin.co.infra/dns/dnsconfig.json
forgejoCNAMEdefaultingress.alwaldend.com.infra/forgejo/dnsconfig.json
gitCNAMEdefaultingress.alwaldend.com.infra/forgejo/dnsconfig.json
host1.ingressAdefault81.26.185.118infra/ingress/dnsconfig.json
ingressAdefault81.26.185.118infra/ingress/dnsconfig.json
int.forgejoAdefault192.168.10.40infra/forgejo/dnsconfig.json
int.vaultAdefault192.168.1.218infra/vault/dnsconfig.json
mail._domainkey.yandexTXT300v=DKIM1; k=rsa; t=s; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCcYzFVgkeDOhaIIkWM8gNQjxVsv0/aXfU+ax5urB5y6hA6lSjRnjRo6tm0bXbkOJf41GmiwMNgdXpwRtzgzAlX1i2aJbtEr4b9jzibEGLQ7Cvqs44bOYES9f/K3ueQpnvdTOJmFqlRReFL7ZrUyDFCoQ7f4+7h4i8s01cCcRrt5wIDAQABinfra/dns/dnsconfig.json
njalla1.nodes.threexuiAdefault45.142.141.133infra/threexui/dnsconfig.json
njalla1.nodes.threexuiAAAAdefault2a0a:3840:8078:141:0:2d8e:8d85:1337infra/threexui/dnsconfig.json
pagesAdefault185.199.108.153projects/alwaldend.com/dnsconfig.json
pagesAAAAdefault2606:50c0:8000::153projects/alwaldend.com/dnsconfig.json
protonmail._domainkeyCNAME300protonmail.domainkey.djgwfzcu5fgjtpoijqqomgifmqj6zeiuwdd4mzim4hrxab3zsgwkq.domains.proton.ch.infra/dns/dnsconfig.json
protonmail2._domainkeyCNAME300protonmail2.domainkey.djgwfzcu5fgjtpoijqqomgifmqj6zeiuwdd4mzim4hrxab3zsgwkq.domains.proton.ch.infra/dns/dnsconfig.json
protonmail3._domainkeyCNAME300protonmail3.domainkey.djgwfzcu5fgjtpoijqqomgifmqj6zeiuwdd4mzim4hrxab3zsgwkq.domains.proton.ch.infra/dns/dnsconfig.json
simpleloginMX1080010 mx1.simplelogin.co.infra/dns/dnsconfig.json
simpleloginMX1080020 mx2.simplelogin.co.infra/dns/dnsconfig.json
simpleloginTXT10800sl-verification=bxfzzfjiggzsxyzxhhmkmjqkaskjgyinfra/dns/dnsconfig.json
simpleloginTXT10800v=spf1 include:simplelogin.co ~allinfra/dns/dnsconfig.json
t3code.host-bot.simeonwarren.usersCNAMEdefaultingress.alwaldend.com.users/simeonwarren/host_bot/dnsconfig.json
vaultCNAMEdefaultingress.alwaldend.com.infra/vault/dnsconfig.json
wwwCNAME300alwaldend.com.infra/dns/dnsconfig.json
www-stagingCNAME300alwaldend.github.io.infra/dns/dnsconfig.json
yandexMX2160010 mx.yandex.net.infra/dns/dnsconfig.json
yandexTXT300v=spf1 redirect=_spf.yandex.netinfra/dns/dnsconfig.json
yandexTXT300yandex-verification: b83672f59b3dbe16infra/dns/dnsconfig.json
yc.threexuiNSdefaultns1.yandexcloud.net.infra/threexui/dnsconfig.json
yc.threexuiNSdefaultns2.yandexcloud.net.infra/threexui/dnsconfig.json
yc1.nodes.threexuiCNAMEdefaulthost1.nodes.yc.threexui.alwaldend.com.infra/threexui/dnsconfig.json

2 - Mikrotik DNS

Records declared for the internal dc1 view served by RouterOS

Every record this repository declares for the internal dc1 view, which RouterOS serves for that network.

This page is generated from the declarations; run bazel run //infra/dns/cmd/dump -- --write after changing them. The authoritative source is each owner’s dnsconfig.json.

DomainTypeTTLValueDeclaration
@A300185.199.108.153infra/dns/dnsconfig.json
@A300185.199.109.153infra/dns/dnsconfig.json
@A300185.199.110.153infra/dns/dnsconfig.json
@A300185.199.111.153infra/dns/dnsconfig.json
@AAAA3002606:50c0:8000::153infra/dns/dnsconfig.json
@AAAA3002606:50c0:8001::153infra/dns/dnsconfig.json
@AAAA3002606:50c0:8002::153infra/dns/dnsconfig.json
@AAAA3002606:50c0:8003::153infra/dns/dnsconfig.json
@MX30010 mail.protonmail.ch.infra/dns/dnsconfig.json
@MX30020 mailsec.protonmail.ch.infra/dns/dnsconfig.json
@TXT300_globalsign-domain-verification=0QBJgVV_uwcFLTi1Rot3bb1LyJ5uW1WD0ygvIS4OM5infra/dns/dnsconfig.json
@TXT300protonmail-verification=bdcd133d3f472fa17f66328950d02fbeae1bef75infra/dns/dnsconfig.json
@TXT300v=spf1 include:_spf.protonmail.ch ~allinfra/dns/dnsconfig.json
_dmarcTXT300v=DMARC1; p=quarantine; adkim=sinfra/dns/dnsconfig.json
_dmarc.simpleloginTXT10800v=DMARC1; p=quarantine; pct=100; adkim=s; aspf=sinfra/dns/dnsconfig.json
automation.openhandsAdefault192.168.10.92infra/openhands/dnsconfig.json
bm1.dc1Adefault192.168.1.222infra/mikrotik/dnsconfig.json
bm2.dc1Adefault192.168.1.216infra/pve/dnsconfig.json
bm2.dc1AAAAdefaultfd2e:546d:5738:0:365a:60ff:fe08:6daainfra/pve/dnsconfig.json
bm3.dc1Adefault192.168.1.218infra/vault/dnsconfig.json
bm3.dc1AAAAdefaultfd2e:546d:5738:0:e2be:3ff:fe2b:9a1ainfra/vault/dnsconfig.json
canvas.openhandsAdefault192.168.10.90infra/openhands/dnsconfig.json
cloudCNAMEdefaultnas.alwaldend.com.infra/nas/dnsconfig.json
cloudinit-test.vm.pve1.dc1Adefault192.168.10.10infra/pve/dnsconfig.json
dc1.automation.openhandsAdefault192.168.10.92infra/openhands/dnsconfig.json
dc1.canvas.openhandsAdefault192.168.10.90infra/openhands/dnsconfig.json
dc1.cloudAdefault192.168.1.209infra/nas/dnsconfig.json
dc1.host-bot.simeonwarren.usersAdefault192.168.1.210users/simeonwarren/host_bot/dnsconfig.json
dc1.server.openhandsAdefault192.168.10.91infra/openhands/dnsconfig.json
dc1.t3code.host-bot.simeonwarren.usersAdefault192.168.1.210users/simeonwarren/host_bot/dnsconfig.json
dkim._domainkey.simpleloginCNAME10800dkim._domainkey.simplelogin.co.infra/dns/dnsconfig.json
dkim02._domainkey.simpleloginCNAME10800dkim02._domainkey.simplelogin.co.infra/dns/dnsconfig.json
dkim03._domainkey.simpleloginCNAME10800dkim03._domainkey.simplelogin.co.infra/dns/dnsconfig.json
fluxAdefault192.168.10.60infra/flux/dnsconfig.json
forgejoAdefault192.168.10.40infra/forgejo/dnsconfig.json
gitAdefault192.168.10.40infra/forgejo/dnsconfig.json
harborAdefault192.168.10.50infra/harbor/dnsconfig.json
host-bot.simeonwarren.usersAdefault192.168.1.210users/simeonwarren/host_bot/dnsconfig.json
host1.automation.openhandsAdefault192.168.10.92infra/openhands/dnsconfig.json
host1.canvas.openhandsAdefault192.168.10.90infra/openhands/dnsconfig.json
host1.cloudCNAMEdefaulthost1.nas.alwaldend.com.infra/nas/dnsconfig.json
host1.fluxAdefault192.168.10.60infra/flux/dnsconfig.json
host1.forgejoAdefault192.168.10.40infra/forgejo/dnsconfig.json
host1.harborAdefault192.168.10.50infra/harbor/dnsconfig.json
host1.ingressAdefault81.26.185.118infra/ingress/dnsconfig.json
host1.nasAdefault192.168.1.209infra/nas/dnsconfig.json
host1.pve1.dc1CNAMEdefaultbm2.dc1.alwaldend.com.infra/pve/dnsconfig.json
host1.server.openhandsAdefault192.168.10.91infra/openhands/dnsconfig.json
host1.threexuiAdefault192.168.10.80infra/threexui/dnsconfig.json
host1.vault.dc1Adefault192.168.1.218infra/vault/dnsconfig.json
host1.xcp-ngAdefault192.168.1.213infra/xcp_ng/dnsconfig.json
host1.xoa.xcp-ngAdefault192.168.1.206infra/xcp_ng/dnsconfig.json
ingressAdefault81.26.185.118infra/ingress/dnsconfig.json
mail._domainkey.yandexTXT300v=DKIM1; k=rsa; t=s; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCcYzFVgkeDOhaIIkWM8gNQjxVsv0/aXfU+ax5urB5y6hA6lSjRnjRo6tm0bXbkOJf41GmiwMNgdXpwRtzgzAlX1i2aJbtEr4b9jzibEGLQ7Cvqs44bOYES9f/K3ueQpnvdTOJmFqlRReFL7ZrUyDFCoQ7f4+7h4i8s01cCcRrt5wIDAQABinfra/dns/dnsconfig.json
nasAdefault192.168.1.209infra/nas/dnsconfig.json
njalla1.nodes.threexuiAdefault45.142.141.133infra/threexui/dnsconfig.json
njalla1.nodes.threexuiAAAAdefault2a0a:3840:8078:141:0:2d8e:8d85:1337infra/threexui/dnsconfig.json
openid.fluxCNAMEdefaultflux.alwaldend.com.infra/flux/dnsconfig.json
operator.fluxCNAMEdefaultflux.alwaldend.com.infra/flux/dnsconfig.json
protonmail._domainkeyCNAME300protonmail.domainkey.djgwfzcu5fgjtpoijqqomgifmqj6zeiuwdd4mzim4hrxab3zsgwkq.domains.proton.ch.infra/dns/dnsconfig.json
protonmail2._domainkeyCNAME300protonmail2.domainkey.djgwfzcu5fgjtpoijqqomgifmqj6zeiuwdd4mzim4hrxab3zsgwkq.domains.proton.ch.infra/dns/dnsconfig.json
protonmail3._domainkeyCNAME300protonmail3.domainkey.djgwfzcu5fgjtpoijqqomgifmqj6zeiuwdd4mzim4hrxab3zsgwkq.domains.proton.ch.infra/dns/dnsconfig.json
pveAdefault192.168.1.216infra/pve/dnsconfig.json
router1.dc1Adefault192.168.1.1infra/mikrotik/dnsconfig.json
router1.dc1AAAAdefaultfd2e:546d:5738::1infra/mikrotik/dnsconfig.json
runner1.forgejo-runnerAdefault192.168.10.100infra/forgejo_runner/dnsconfig.json
server.openhandsAdefault192.168.10.91infra/openhands/dnsconfig.json
simpleloginMX1080010 mx1.simplelogin.co.infra/dns/dnsconfig.json
simpleloginMX1080020 mx2.simplelogin.co.infra/dns/dnsconfig.json
simpleloginTXT10800sl-verification=bxfzzfjiggzsxyzxhhmkmjqkaskjgyinfra/dns/dnsconfig.json
simpleloginTXT10800v=spf1 include:simplelogin.co ~allinfra/dns/dnsconfig.json
switch1.dc1Adefault192.168.1.254infra/mikrotik/dnsconfig.json
t3code.host-bot.simeonwarren.usersAdefault192.168.1.210users/simeonwarren/host_bot/dnsconfig.json
threexuiAdefault192.168.10.80infra/threexui/dnsconfig.json
vaultAdefault192.168.1.218infra/vault/dnsconfig.json
vault.dc1Adefault192.168.1.218infra/vault/dnsconfig.json
wwwCNAME300alwaldend.com.infra/dns/dnsconfig.json
www-stagingCNAME300alwaldend.github.io.infra/dns/dnsconfig.json
xcp-ngAdefault192.168.1.213infra/xcp_ng/dnsconfig.json
xoa.xcp-ngAdefault192.168.1.206infra/xcp_ng/dnsconfig.json
yandexMX2160010 mx.yandex.net.infra/dns/dnsconfig.json
yandexTXT300v=spf1 redirect=_spf.yandex.netinfra/dns/dnsconfig.json
yandexTXT300yandex-verification: b83672f59b3dbe16infra/dns/dnsconfig.json
yc.threexuiNSdefaultns1.yandexcloud.net.infra/threexui/dnsconfig.json
yc.threexuiNSdefaultns2.yandexcloud.net.infra/threexui/dnsconfig.json
yc1.nodes.threexuiCNAMEdefaulthost1.nodes.yc.threexui.alwaldend.com.infra/threexui/dnsconfig.json

3 - OpenSpec

3.1 - Infrastructure DNS

Describe owner-local Terraform DNS declarations and runtime source-ownership validation for global and dc1 records. This contract describes checked-in source; it does not establish live adoption or authorize infrastructure writes.

Sources: component documentation, target definitions, runtime linter, and shared Terraform packaging.

DNS declarations SHALL remain in their owners’ dns/dnsconfig.json files. Runtime inventory SHALL discover all canonical files, including nested modules and empty declarations, without a checked-in ownership registry. The inventory SHALL print a deterministic table of files, DNS names, types and views.

Project landing declarations retain their declared direct targets.

  • WHEN the runtime linter scans a workspace containing the new file
  • THEN it includes the file without requiring a registry update

The Terraform module SHALL preserve Cloudflare global and MikroTik dc1 views. It SHALL retain every type member, expand and deduplicate destinations, reject unknown inputs and preserve effective values, TTLs, priorities and multiplicity.

Scenario: An entry declares A and AAAA in all views

  • WHEN the shared module normalizes the entry
  • THEN both types appear exactly once in each destination view
  • WHEN a record names an unsupported destination
  • THEN normalization fails with an actionable diagnostic

The linter and module tests SHALL validate source ownership, names, inputs, normalization and provider mappings without credentials or live provider access. Existing JSON-based VM consumers SHALL remain compatible.

  • WHEN offline checks run
  • THEN they validate the declaration and fixtures without deploying records

Owner Terraform roots SHALL use the existing AL/Vault authentication, backend and credential injection workflow. They SHALL obtain only their required view credentials. Operational provider initialization may require live credentials even with resource creation disabled. Central DNSControl write entrypoints SHALL be removed from the candidate.

  • WHEN an authorized operator invokes the root after bootstrap
  • THEN it uses that owner’s AppRole and Cloudflare credentials
  • AND RouterOS credentials and resources are not required

Terraform-managed DNS SHALL use the shared DNS packaging with an owner-local dns/ root and state. Terraform DNS commands SHALL use the owner’s Vault AppRole and DNS credentials without selecting service provisioning settings. Service commands SHALL retain their independent state and authentication. The root SHALL consume the owner’s canonical dns/dnsconfig.json and use the provider views that owner requires. Provider instance keys SHALL remain stable across value-only changes. Empty inventories do not require an operational root.

  • WHEN the DNS configuration moves to its dedicated root
  • THEN the old root SHALL relinquish DNS bindings without deleting records
  • AND the operator SHALL complete the state transfer before ordinary plans or applies from the new revision
  • AND an authorized transfer SHALL import the same provider IDs and verify a no-change plan
  • AND provisioning SHALL retain any canonical declaration inputs it uses for host configuration
  • WHEN the owner adopts shared packaging
  • THEN its existing backend and Terraform resource addresses SHALL be preserved

The runtime linter SHALL reject different files managing the same canonical fully qualified DNS name, across types and views. Multiple records within one file SHALL be allowed. Diagnostics SHALL identify both files.

  • WHEN one file declares an A record and another an AAAA record or a different view for the same name
  • THEN lint fails and identifies both source files
  • WHEN one file declares several values, types or views for a name
  • THEN ownership lint accepts the sole source

Operational cutover SHALL audit active and scheduled central writers, stop identified competing writers, and coordinate one owner at a time. Evidence SHALL state the audit’s coverage and unavailable observations. Each existing record SHALL be imported using its actual provider ID into exactly one owner state, followed by a no-change adoption plan before writes. Fresh complete inventories MAY establish missing declarations for an exact additions-only plan that preserves every existing record. Endpoint-owning batches SHALL verify an independent authenticated recovery path first.

The shared apex and mail records owned by infra/dns SHALL remain disabled by default in its tf root before the authorized adoption revision and SHALL retain enabled ownership after import. Reconciliation against the adopted state and unchanged declarations SHALL propose no record additions, changes, replacements, or deletions and SHALL preserve unrelated provider records.

  • WHEN its authorized cutover runs
  • THEN exact-ID imports preserve existing records
  • AND the operator coordinates exclusive active writers and verifies unrelated records remain unchanged
  • WHEN complete provider inventories establish that declared names are absent and conflict-free
  • THEN the reviewed DNS plan creates only those missing declarations
  • AND every existing provider identity and attribute remains unchanged
  • AND a follow-up DNS plan contains no changes
  • WHEN the shared tf root uses its checked-in defaults before its authorized adoption revision
  • THEN shared-record ownership is disabled and the root retains the canonical shared declaration and module inputs
  • WHEN the adopted shared tf root uses its checked-in source defaults
  • THEN ownership is enabled for the shared apex and mail records in their declared views
  • WHEN the shared tf root plans against adopted state and unchanged declarations
  • THEN it proposes no record additions, changes, replacements, or deletions
  • AND unrelated provider records remain unchanged

The implementation SHALL derive its declaration views from the owning dnsconfig.json files rather than maintaining a normalized inventory or BIND exporter. Historical provider snapshots SHALL NOT be presented as current desired state, and no provider snapshot SHALL be committed as a declaration source.

  • WHEN the runtime linter succeeds
  • THEN its table reports the discovered declarations without an export step

The implementation SHALL render one documentation page per destination view from the declared records, with the owning declaration for every record. Regeneration SHALL require an explicit manual command. Ordinary validation SHALL check declarations and ownership without requiring checked-in pages to match the declarations or rewriting those pages. Documentation SHALL identify the declarations as authoritative and explain that snapshots may lag.

  • WHEN an operator explicitly runs the documentation generation command
  • THEN each destination page lists the current declarations with their owner
  • AND an explicit freshness check succeeds against the regenerated pages
  • WHEN a declaration changes while its checked-in page remains unchanged
  • THEN ordinary declaration validation does not fail because of that stale page
  • AND the page is not rewritten unless regeneration is explicitly invoked
  • WHEN an operator explicitly checks a stale page
  • THEN the command reports that regeneration is needed

4 - Shared DNS Terraform

Owner state for common apex and mail records

This root consumes the canonical common declarations through the reusable DNS module. It uses the src_infra_dns AppRole and its existing Vault-backed HTTP state. Both Cloudflare and RouterOS credentials are injected through the tf=1 stage label.

Shared apex and mail records were adopted on 2026-09-13. dns_enabled now defaults to true; reconciliation against the adopted state and unchanged declarations must propose no record changes. The adoption evidence records 60 imports and preservation of both complete provider inventories.

Operational calls require the AppRole policy and Vault credential fields described by the cutover procedure. The module’s import_addresses output gives addresses relative to module.dns; actual provider IDs come from the authorized adoption inventory.

Build the wrappers or run :tf_tests.fmt_test for offline validation. Import, plan and apply follow the separately authorized adoption procedure.

5 - Shared Terraform DNS roots

Bazel entry point for owner-local DNS deployments

infra_terraform_dns packages a Terraform root in an owner’s dedicated DNS Bazel package. Pass the owner’s AL configuration and declare the local :dnsconfig filegroup for dnsconfig.json.

load("//infra/dns/terraform:defs.bzl", "infra_terraform_dns")

infra_terraform_dns(
    name = "tf",
    configs = [":al"],
)

The default root uses Cloudflare. Set dc1 = True when the owner also uses RouterOS. The AL configuration must select the matching DNS credentials and the owner’s Vault HTTP backend. The macro exposes the standard tf.* commands and offline tf_tests.* checks.

Use infra_terraform_dns_config to compose the owner’s AppRole with a distinct Vault backend and DNS-only credential injection selected by tf=dns. Keep that configuration separate from service commands. Existing DNS-only roots can pass their existing selectors and state configuration. Follow the state transfer procedure before operating a root extracted from service state.