PowerDNS on think: authoritative int zone + recursor, external-dns pdns provider #1673
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#1673
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?
Part of lab/clusters#1668.
int.animeteamspeak.moe.Zone/ClusterZoneandRRset/ClusterRRsetresources in git, synced to the PowerDNS API. Nothing is configured by hand or through the API directly.think.int/mini.intto each cluster's CoreDNS, public names to 1.1.1.1/8.8.8.8 (full recursion as a later switch)./etc/hosts.Done when
intnames, cluster service names and public names all resolve via 10.10.5.53Plan (decided 2026-11-18)
Supersedes the body where they differ: the
10.10.5.53target is dead, and the backend is LMDB, not Postgres.Addresses (c1 LB IPAM). Two
CiliumLoadBalancerIPPools over the current 10.30.100.0/24 and fdd5:c8ef:2fa0💯:/64, asstart/stopranges so they don't overlap:pinned: .2-.63 (v6 ::2-::ff). Only Services labeledlbipam.animeteamspeak.moe/pool: pinneddraw from it, and each one names its address withlbipam.cilium.io/ips.dynamic: .64-.254 (v6 ::100 onward). Any Service without that label.dynamic.Roles. Authoritative and recursive are separate processes on separate addresses.
linstor-csi-2rPVC, one replica (LMDB allows one instance per database). Written only through the API, by the PowerDNS Operator (zones and records as CRs in git) and by external-dns. Nothing queries it directly.int.animeteamspeak.moeuntilintis signed. RPZ ad-blocking later (#1678).Zones. All are CRs in git.
int.animeteamspeak.moe(parent),caosh.int.animeteamspeak.moe(site zone, per #1674), and reverse zones for 10.30.0.0/16 and fdd5:c8ef:2fa0::/48.c1.caosh.int.animeteamspeak.moe(c1's cluster domain): the recursor forwards it to c1's CoreDNS over its ClusterIP. Node names and headless Services resolve LAN-wide. ClusterIPs still don't route off-cluster, so LAN-facing names go incaosh.intthrough external-dns, pointing at LB addresses.caosh.int, with owner IDc1.Clients (lab/iac). DHCP hands out only the recursor, so DNS fails closed when it's down, with no public fallback. The routers keep their own upstreams for NTP and PPPoE, with remote requests off. Client VLANs may reach TCP/UDP 53 and 853 only at the recursor (stops hard-coded resolvers; DoH is out of scope). The egress lock lands in the same change as the DHCP switch, never before it.
Public later (not now). The apex
animeteamspeak.moemoves to the hidden primary. Public secondaries at other networks consume the public catalog only, and the registrar NS records point at them.intnever leaves the internal catalog. #1708 (drop the Cloudflare wildcard) happens with the DHCP switch.Order. One PR each, each approved before merge:
Before any PR, a local sim proves LMDB plus the operator plus catalog zones.
Sim results (2026-11-19, machine-configs harness)
Harness test cluster (k3s v1.37.1, Cilium, Flux), branch
pdns-sim(lab/clusters), treeclusters/test/dns/. PowerDNS Auth 5.1.5 (LMDB), Recursor 5.4.9, PowerDNS Operator v0.6.0, external-dns 0.23.0 (chart 1.23.0).Design changes forced by the sim
Not Found, marked 4 of 6 recordsFailed, and never retried. The operator only reacts to Kubernetes events, and zone status stayedAvailablethroughout. Now PowerDNS runs as a native sidecar, and the operator container starts once the API answers. A fresh primary therefore always comes with a fresh operator, which recreates the zones.DNSEndpointobjects in git; generated ones come from annotated Services. external-dns re-asserts its records every interval and refilled a wiped primary within one cycle. PTR works throughDNSEndpoint.soa_edit_api: EPOCH. After a wipe, the recreated catalog came back with a lower serial (1795059685) than a secondary's copy (date-style 2026111901). That secondary ignored all later catalog changes until it was wiped.also-notifytargets. A Service-wide address reached one pod, and the other sat in freshness-check backoff for 10+ minutes.pdns_control list-zonesreports a loaded zone. An empty secondary behind the shared Service was taking the recursor's queries.configMapGenerator.subPathmounts never update in a running pod, so a config change has to rename the ConfigMap to roll the pods.spec.nameserversmust not end in a dot, while record targets must.external-dns.kubernetes.io/annotations; thealphaprefix is silently ignored.:8082(it shares the pod with the PowerDNS API on:8081).Final run (all pass)
intvia secondaries, cluster domain via CoreDNS, public answers withad,dnssec-failed.orgreturns SERVFAIL,inthas noad(negative trust anchor)Transient: on a fresh secondary, LMDB refused a concurrent write transaction (
Unable to start RW transaction) during the first catalog sync. The member transfer retried and succeeded 9 s later.Deferred
TSIG-ALLOW-AXFR/AXFR-MASTER-TSIG), and the operator can't set metadata. Day one relies onallow-axfr-ipsplus NetworkPolicy, which is enough for internal-only secondaries. Public secondaries will need it.caosh.intin the parent. external-dns writes into the most specific zone, so it would land on the child's apex instead. It isn't needed while both zones sit on the same servers and the recursor forwardsintto them. It becomes needed withintsigned (DS) or with separate site servers.c1 build differs from the sim in
linstor-csi-2r(the sim used emptyDir);10.30.100.53;Live on c1 (2026-11-19)
Shipped as one change, #1744 (superseding #1742/#1743), plus the fix #1745. lab/iac#162 (OpenBao write grant) merged in parallel and converged without ordering.
Verified from the workstation (VLAN 30):
resolver.caosh.intA/AAAA via recursor10.30.100.5310.30.100.53/fdd5:c8ef:2fa0:100::53ns1.int10.30.100.11kubernetes.default.svc.c1.caosh.int(forwarded to CoreDNS)10.30.192.1example.comaddnssec-failed.orgad(negative trust anchor)ns1(10.30.100.11)aa), refuses recursioninfra/apps/c1/generated/dns/pdns-api, PushSecret SyncedRollout issues:
OrderedReady) kept its pod on the broken revision. Kubernetes' documented forced-rollback case; I deleted the pod by hand.All three are logged in lab/releasectl
LOGBOOK.md.Not yet: clients still get 8.8.8.8/1.1.1.1 from DHCP. The lab/iac DHCP switch + 53/853 egress lock, gated on the recursor answering, is next. The Cloudflare wildcard (#1708) needs an inventory of the public names that rely on it before it can go.
Closing: PowerDNS authoritative + recursor live on c1 since 2026-11-19 (#1744/#1745), clients moved in lab/iac#163/#164. Deferred TSIG and public-apex work moved to #1674/#1708.