public gateway baseline: pin explicit public resolvers — the installed box's DNS rides the provider's DHCP resolvers, and a degraded regional resolver bricks founding (4 consecutive drives) #545

Closed
opened 2026-08-14 20:11:30 +00:00 by ben · 2 comments
Owner

Evidence (drives 175515Z, 180446Z, 184731Z, 195713Z — 17:55–20:00Z, all syd1)

Four consecutive takeover droplets could not resolve git.clan.lol from first boot to teardown — #542's remote warm-up (landed correct on the last drive) ran its full bounded window and never got ONE success, then redded honestly: the droplet's resolver stayed cold … this is not a config fault. Meanwhile: the same fetch answers in 0.5–2.3 s from the workstation AND from the mail droplet (different DO context), and the failing boxes fetched nix caches fine during install (popular names = resolver cache hits; the obscure forge name = the broken upstream path). Code exonerated twice (#535's diff carries identical facts; git grep nameservers internal/ = zero hits — we never set DNS at all).

Root cause class: the installed public gateway's DNS comes solely from the provider's DHCP resolvers. A degraded regional resolver (tonight: syd1 vs clan.lol's nameservers) makes founding impossible — and would equally break a real community's box. The repo already names this landmine: frontdoor.go's Caddy tls block pins public resolvers with "never the host's local stub — the production landmine".

Direction

  1. Pin explicit public resolvers in the PUBLIC gateway baseline render (the own-VPS/self-hosted takeover machine dir): networking.nameservers = [ "1.1.1.1" "9.9.9.9" ] (two independent operators), so systemd-resolved carries them alongside/ahead of DHCP-provided ones — provider resolver weather stops being a founding dependency. Private-path VM guest: unchanged (its NAT/host resolution is a different contract).
  2. Seam pin in the render tests: the public baseline carries the nameservers; the private guest render does NOT gain them.
  3. GOTCHAS: append the incident — symptom (obscure-name Resolving timed out on a fresh takeover while cached names work), discriminator (fetch the same URL from a warm box), rule (public gateways pin resolvers; the Caddy tls block's comment now has a sibling).

No machinery change — #542's warm-up + honest red stays as the safety net and will simply pass once resolution works.

Blocks #492 (four drives of evidence; the executor should not burn droplets against a broken regional resolver until this lands).

## Evidence (drives `175515Z`, `180446Z`, `184731Z`, `195713Z` — 17:55–20:00Z, all syd1) Four consecutive takeover droplets could not resolve `git.clan.lol` from first boot to teardown — #542's remote warm-up (landed correct on the last drive) ran its full bounded window and never got ONE success, then redded honestly: `the droplet's resolver stayed cold … this is not a config fault`. Meanwhile: the same fetch answers in 0.5–2.3 s from the workstation AND from the mail droplet (different DO context), and the failing boxes fetched nix caches fine during install (popular names = resolver cache hits; the obscure forge name = the broken upstream path). Code exonerated twice (#535's diff carries identical facts; `git grep nameservers internal/` = zero hits — we never set DNS at all). **Root cause class**: the installed public gateway's DNS comes solely from the provider's DHCP resolvers. A degraded regional resolver (tonight: syd1 vs clan.lol's nameservers) makes founding impossible — and would equally break a real community's box. The repo already names this landmine: frontdoor.go's Caddy tls block pins public resolvers with "never the host's local stub — the production landmine". ## Direction 1. **Pin explicit public resolvers in the PUBLIC gateway baseline render** (the own-VPS/self-hosted takeover machine dir): `networking.nameservers = [ "1.1.1.1" "9.9.9.9" ]` (two independent operators), so systemd-resolved carries them alongside/ahead of DHCP-provided ones — provider resolver weather stops being a founding dependency. Private-path VM guest: unchanged (its NAT/host resolution is a different contract). 2. **Seam pin** in the render tests: the public baseline carries the nameservers; the private guest render does NOT gain them. 3. **GOTCHAS**: append the incident — symptom (obscure-name `Resolving timed out` on a fresh takeover while cached names work), discriminator (fetch the same URL from a warm box), rule (public gateways pin resolvers; the Caddy tls block's comment now has a sibling). No machinery change — #542's warm-up + honest red stays as the safety net and will simply pass once resolution works. Blocks #492 (four drives of evidence; the executor should not burn droplets against a broken regional resolver until this lands).
Author
Owner

swarm-claim host=elitebook-distributed-server-03 run=6371
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=6371 (automated multi-host claim — lowest live claim id works this ticket)
Author
Owner

close-report for #545 — status success

✅ close-report gates passed — every claim verified against main; closing.

envelope
{
  "issue": 545,
  "status": "success",
  "commits": [
    "4fd2d08"
  ],
  "changed_files": [
    "internal/clan/enrollment.go",
    "internal/clan/generators_pin_test.go",
    "internal/clan/vmguest_test.go",
    "docs/GOTCHAS.md",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci --command go test ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go build ./...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Pin explicit public resolvers in the PUBLIC gateway baseline render (networking.nameservers = [ 1.1.1.1 9.9.9.9 ])": "internal/clan/enrollment.go renderNetworkd emits networking.nameservers = [ \"1.1.1.1\" \"9.9.9.9\" ] from publicBaselineResolvers; private VM guest (renderVMGuestBaseline) unchanged",
    "Seam pin: public baseline carries the nameservers; private guest render does NOT gain them": "generators_pin_test.go TestRenderNetworkd_PinsPublicResolvers asserts the pin; vmguest_test.go TestRenderVMGuest_BaselineMirrorsTheImageRecipe asserts the private guest carries no networking.nameservers; both green",
    "GOTCHAS: append the incident (symptom / discriminator / rule)": "docs/GOTCHAS.md entry #37 — obscure-name Resolving timed out on a fresh takeover while cached names work; discriminator = fetch same URL from a warm box; rule = public gateways pin resolvers, sibling of the Caddy tls block"
  },
  "summary": "The public gateway baseline pins explicit public resolvers (1.1.1.1/9.9.9.9) so provider DHCP resolver weather no longer bricks founding; private VM guest unchanged.",
  "blockers": []
}
**close-report** for #545 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 545, "status": "success", "commits": [ "4fd2d08" ], "changed_files": [ "internal/clan/enrollment.go", "internal/clan/generators_pin_test.go", "internal/clan/vmguest_test.go", "docs/GOTCHAS.md", "STATUS.md" ], "tests": [ { "command": "nix develop .#go-ci --command go test ./internal/clan/", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go build ./...", "exit_code": 0 } ], "criteria": { "Pin explicit public resolvers in the PUBLIC gateway baseline render (networking.nameservers = [ 1.1.1.1 9.9.9.9 ])": "internal/clan/enrollment.go renderNetworkd emits networking.nameservers = [ \"1.1.1.1\" \"9.9.9.9\" ] from publicBaselineResolvers; private VM guest (renderVMGuestBaseline) unchanged", "Seam pin: public baseline carries the nameservers; private guest render does NOT gain them": "generators_pin_test.go TestRenderNetworkd_PinsPublicResolvers asserts the pin; vmguest_test.go TestRenderVMGuest_BaselineMirrorsTheImageRecipe asserts the private guest carries no networking.nameservers; both green", "GOTCHAS: append the incident (symptom / discriminator / rule)": "docs/GOTCHAS.md entry #37 — obscure-name Resolving timed out on a fresh takeover while cached names work; discriminator = fetch same URL from a warm box; rule = public gateways pin resolvers, sibling of the Caddy tls block" }, "summary": "The public gateway baseline pins explicit public resolvers (1.1.1.1/9.9.9.9) so provider DHCP resolver weather no longer bricks founding; private VM guest unchanged.", "blockers": [] } ``` </details>
ben closed this issue 2026-08-14 20:22:49 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#545
No description provided.