Troubleshooting

Establish the failing path

  1. Identify the responding pod and inspect readiness, status and structured logs. Use observability to pin inspection to one pod.
  2. Query the exact name/type directly over UDP and TCP. Inspect response code, AA, SOA, addresses and any delegation referral.
  3. Identify the source: DNSRecords CR (or local file), generated Kubernetes resource or peer. Compare successful synchronization times and source revisions across pods.
  4. Compare with public resolvers only after confirming local authority. Their caches and parent delegation can explain a different answer.

Failed or incomplete updates retain last-good data. TTL expiry never removes records from the authoritative cache. Recover the source, or remove its contribution through an explicit valid update; see DNS behaviour.

Symptoms and recovery

Symptom Checks and recovery
Startup remains unready Verify CRDs are Established, validate CRs, DOMAIN/CLUSTER_ID, local TSIG availability, RBAC and complete source lists. Check peer endpoint-attempt deadlines.
Configuration is rejected Correct the reported validation field. For UI HTTP 409, reload and reconcile. An invalid assembled CR candidate retains last-good state. Missing logging settings default false; the old ConfigMap config.json is no longer read.
Service name is absent Check <service>.<namespace>.<DOMAIN>, spec.externalIPs and a successful complete source refresh; no zone is required. ClusterIP and LoadBalancer status do not generate records.
Node name is absent Check bare-name DOMAIN suffixing versus dotted node names, ExternalIP entries and source-refresh status; no zone is required. There is no InternalIP fallback.
Ingress host is absent/wrong Require spec.ingressClassName, a controller Service with matching dns.tak-os.org/ingress-class and dns.tak-os.org/ingress: "true", and eligible Service/binding addresses. Check dns.tak-os.org/ignore on all three source kinds. Classless or unmapped Ingresses are skipped; status addresses and EXTIPS are not used.
Ambiguous ingress class More than one exposed Service claims a class. Correct the class annotations or ignore the unwanted Service. The refresh retains the last accepted snapshot until resolved.
CNAME is absent Any A/AAAA at that owner in the same zone masks CNAME, including a local alias masked by peer addresses. Remove the address contribution at its source to restore the alias.
One name returns SERVFAIL Inspect distinct CNAME targets or CNAME/non-address conflicts across sources, and the complete RRset size. Fix definitions at their origins.
Answers survive a deletion Check other sources contributing the name, whether the source refresh succeeded, and recursive TTL caches. Deleting a parent zone does not delete independently owned peer/child-zone data.
Peer transfer fails Check TCP53, ordered endpoint addresses, stable expected ID, the destination site’s local TSIG key stored at this receiver and synchronized clocks. BIND/AXFR cannot supply this protocol.
Peer is pending Provision its destination-site key through UI/GitOps/ESO. Discovery does not share secrets. Initial pending checks count for readiness, but no remote records can warm without credentials.
Local key unavailable Check Secret get/create/update RBAC and keyName/algorithm/base64 values. A present invalid initial Secret is not overwritten. Check /api/keys error.
Key rotation breaks transfer Old keys are rejected after reload. Provision the replacement at intended receivers; distribution is deliberately outside the app. Existing imported records remain.
Peer is self/disabled Inspect PeerSite spec.disabled/status.self and signed endpoint identity. Effective endpoints are empty; discovery cannot clear quarantine automatically.
dig and libc differ below delegation dig +norecurse (RD=false) retains iterative NS referrals. RD=true unanswered referrals become REFUSED with no authority/glue so stubs can try alternatives. Positive aliases remain nonrecursive; external targets need a recursive resolver.
Completely unknown name returns REFUSED Expected even under an explicit SOA; unknown names never produce NXDOMAIN. Check owner spelling and successful source synchronization before relying on resolver fallback.
Known name lacks A/AAAA/CNAME and returns empty NOERROR Expected authoritative NODATA. Address masking can remove CNAME from the serving view. An SOA is included only when enabled; no zone/SOA is required. Resolver libraries normally stop that type lookup rather than asking another server.
Unzoned ancestor or empty zone apex returns REFUSED Expected: unzoned inferred ancestors are unknown, and a bare zone with SOA disabled/no NS/no establishing RR data does not create apex existence. Empty non-terminals within explicit zones with real descendant data are known instead.
Missing family differs between servers Known-name NODATA is terminal, so do not split one owner’s A/AAAA data across unrelated resolv.conf servers. Verify converged mesh caches or use domain-routing/recursive infrastructure.
UI change returns HTTP 400 Check individual CR syntax and aggregate duplicate-zone/peer or cross-group alias conflicts. Remove explicit zone bindings before deleting their zone. Existing invalid aggregates can be repaired one object at a time.
Discovery fails but records work Inspect discoveryError, catalogue paths/hop limits and API persistence permissions. Metadata has a separate local persistence deadline and cannot roll back a valid record transfer.
All discovered endpoints are obsolete Edit the PeerSite's bootstrap identity/address list to explicitly rebootstrap. A successful direct advertisement captures the new seed state; changing an unrelated field does not restore old seeds.
Stale topology is rejected Inspect persisted sourceVersions/routeVersions and the exporting pod's Node/Service/PeerSite read state. DNS records can still import successfully; a converged topology replica clears discoveryError.
Withdrawn endpoints return Inspect persisted source paths and returning-route suppression; withdrawn learned routes must not become new local seeds. Direct self-advertisements override indirect/bootstrap values.
Peer data is stale Inspect active endpoint, failure reason and last success. Repair the source/path, then optionally request a full re-transfer on the affected receiver. Data remains retained through outages.
All pods restarted with a peer down Imported data was memory-only and is absent until a successful retry. Restore peer connectivity; readiness alone does not prove cache completeness.
Paginated transfer fails Both sides must use wire v4. All pages need one persistent TCP connection and its immutable transfer token. Unknown/evicted tokens fail without replacing data; retry.
Transfer exceeds size limit Reduce the admitted dataset or deliberately revise and test the code-level 16 MiB bound and memory budgets. Earlier data stays active.
Source rollback is rejected Investigate stale peer replicas or restored Kubernetes API state; see the recovery procedure below. Manual re-transfer preserves watermarks.
UDP succeeds but TCP fails Check both Service ports, firewalls, external routing and listener health. Truncated answers require TCP fallback.
Large reply returns SERVFAIL If compression still cannot fit the 65,535-byte TCP message, reduce the RRset at its source.
Requests are limited Check tak_dns_limited_total, QUERY_RATE/BURST, MAX_CONCURRENT and observed source IPs. Service SNAT can aggregate clients behind node IPs.
Local topology discoveryError is set Verify DNS_SERVICE_NAME, administration namespace, Service get permission and complete valid Node ExternalIP/Service externalIP reads. Prior advertisement is retained; this is separate from peers[].discoveryError.
A node cannot serve DNS Check DNS Service externalIPs, routing/firewall and CNI/service forwarding to ready pods. externalTrafficPolicy: Cluster allows nodes without a DNS pod to forward traffic.
Console comparison times out publicly Check pod egress to fixed Google/Cloudflare resolvers over UDP/TCP53. This does not affect ordinary authoritative serving.

The full configuration, record rules and peer setup provide the exact fields behind these checks.

Recover after an intentional source-version rollback

Numeric Kubernetes source watermarks protect receivers against older snapshots from stale replicas. An intentional datastore restoration can lower those watermarks and therefore require an operator decision. File-mode sources have no equivalent numeric generation protection.

  1. Establish that the restored source data is the intended truth. Check API recovery state, source replicas and saved configuration before resetting receivers.
  2. Save diagnostic status, revisions and record samples. Retained imported data can be the only currently available copy of the former state.
  3. Restart affected receiving pods, or explicitly remove and re-add the peer configuration to reset that source's in-memory state. A peer configuration removal propagates across the receiving cluster; restarting a pod affects that receiver only. Expect cache warming and a possible temporary gap.
  4. Confirm successful new transfers and the desired records on every receiver.

These resets discard retained state and are deliberate recovery operations. Routine endpoint outages require connectivity repair and retries. Re-transfer forces full data but deliberately keeps rollback protection. See the peer protocol for watermark and token semantics.