DNS: replace the *.animeteamspeak.moe wildcard with explicit records (external-dns) #1708
Labels
No labels
epic
fleet:hub
fleet:identity
fleet:ingress
fleet:offload
fleet:sveltos
needs-triage
ready-for-agent
ready-for-human
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/clusters#1708
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
At the 2026-11-16 router swap, the routers' DHCP handed out the search domain
caosh.int.animeteamspeak.moe. Pods resolve with ndots:5, so they tried every external name under it first, and the public wildcard*.animeteamspeak.moeanswered with our own IP. cloudflare-ddns and every new pod on mini lost the internet. The DHCP domain is gone now (lab/iac#127), but the wildcard still answers for any name under the zone: typos, scanner guesses, internal names.Plan:
external-dns.alpha.kubernetes.io/target: animeteamspeak.moe), not proxied, with the TXT ownership registry.caosh.int.animeteamspeak.moe) are served only by the internal resolver (PowerDNS, #1673), with split-horizon views for the public names (LAN answers the LoadBalancer IPs). After that, the DHCP search domain can come back, and hairpin NAT stays only as a fallback.Stopgap if needed before then: any record at
int.animeteamspeak.moestops the wildcard from matching names below it.Search keywords: TODO dns wildcard external-dns split horizon.
Split-horizon in place of hairpin NAT as the main LAN path (2026-11-16)
Today LAN clients reach our public names through hairpin NAT on the routers (lab/iac#121). It works, but:
PUBLIC-IPlist follows DNS, so after a WAN failover (each router has its own PPPoE IP, lab/iac#128) LAN access to our own services waits for cloudflare-ddnsWith split-horizon, the internal resolver (PowerDNS, #1673) answers the public names with the LoadBalancer IPs (10.10.6.x). Traffic is routed over BGP with no NAT, and the client IP is preserved. external-dns can feed both views from the same Gateway/HTTPRoute hostnames (Cloudflare provider for public, PowerDNS provider for internal), so there's no second list to maintain.
Before turning it on
drop invalidkills it. Today the hairpin masquerade (LAN-NETS -> PUBLISHED) hides this. Fix: move mini to the servers VLAN (20), so clients and servers are always routed, or keep that masquerade for clients on mini's subnet.use-application-dns.netas NXDOMAIN internally turns Firefox's default DoH off.Downsides to plan for
animeteamspeak.moeis ever signed at Cloudflare, the internal view must be authoritative for (or forwarded and not validated for) those names on our resolver. A validating resolver would otherwise reject the different internal answers.Search keywords: TODO split horizon hairpin powerdns external-dns.
2026-11-22: the user deleted the Cloudflare wildcard record (step 3).
Fallout check:
ddns-system). The 21:30Z job failed: it updated the apex, then the PATCH to the wildcard id1125532a…returned 404. Fix: dropWILDCARD_RECORD_IDfromgeneric-templates/cloudflare-ddns/kustomization.yamland the wildcard from the loop inddns.py(~line 84). The apex still updates, so WAN changes still propagate; until the fix, every run fails noisily.public-dns/public-names, plus apex/www/harbor and the mail-VPS records, resolve. LE uses DNS-01 only, so renewals are unaffected (next: git 11-23).vm.(stale routevm/vmauth-public-auth),portable.k8s.,receiver.(still an active webhook on lab/clusters and safe to delete;receiver.miniis the live one).Remaining: the ddns fix above, then step 4 (split-horizon).
cloudflare-ddns fixed on main in
7f058ab8: apex only, WILDCARD_RECORD_ID removed. A manual run at 21:38Z updated the apex to 70.26.10.82 cleanly. The dead receiver.animeteamspeak.moe webhook (hook 34) on lab/clusters is deleted. Step 3 is done; step 4 (split-horizon) remains.