You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keep private name lookups working while records change #264
Reproduced this with ordinary scaling, not only control-plane restarts. I resolved two unchanged instance names from inside a VPC, through fd53::53, about twice a second while scaling a workload in the same VPC (us-central-1 staging lab, 2026-10-22, serving fleet stable since 22:26).
Scale 1→2 at 22:27:37: both names returned SERVFAIL from 22:28:09 to 22:28:10, when the new instance's record was published.
Scale 2→1 at 22:29:12: both names returned SERVFAIL at 22:29:33, when the removed record was withdrawn. There was one timeout at 22:30:06.
An earlier scale-out at 22:24:34 gave about 12 seconds of SERVFAIL for every name in the VPC.
So every instance add or remove currently takes out private resolution for the entire VPC for a second or more.
The description now explains the problem and expected outcome in plain language. The original report is preserved below for the observations, diagnostics, and implementation details behind this work. It describes the situation when the issue was reported; later comments and the issue state record subsequent progress.
Original report and engineering evidence
What happened
On 2026-10-22 at about 20:42 UTC, private DNS names in a staging project failed to resolve (SERVFAIL) for a few seconds while the DNS fleet switched to a new version of the project's zone. Public names kept working, and it recovered on its own.
Why it happens
When the fleet's routing layer receives a new version of a zone, it immediately stops sending queries for that zone to any DNS server that hasn't confirmed it has the new version, even though those servers are still correctly serving the previous one. Until the first server confirms the new version, there is nowhere to send the query, so the resolver returns SERVFAIL.
This isn't limited to the case we saw. It can happen on every change to a private zone, including ordinary record updates. How long the outage lasts depends on how quickly the DNS servers confirm the update, which in staging was a few seconds.
Restarting the internal DNS control plane makes it more noticeable: each restart takes over ownership of every zone and republishes it as a new version, so every private zone goes through this switch at once.
What we'd like
Zone updates should hand over without a gap: keep answering from servers on the previous valid version until servers on the new version are confirmed.
A control-plane restart shouldn't cause a resolution blip for every project.
Where the fix goes
In internal/internaldns/serving/agent.go, eligibleRegionalMembers (added in the serving-recovery change, feat: Preserve private DNS isolation through serving failures) currently requires each member's acknowledgement to exactly match the agent's newest publication, and drops every member if any acknowledgement is ahead of the agent. Instead, a member should count as ready when its verified acknowledgement satisfies the zone's required publication (the RequiredPublicationEpoch/RequiredPublicationRevision the snapshot already carries), so members on the previous valid version keep serving during the switch. This should land as a follow-up PR after the private DNS stack merges, with a test that steps a zone from one version to the next and asserts there is no empty pool in between.
Details
Lab fleet in us-central-1: the regional front's dnsdist got a config update at 20:42:06.2 (it applied the new publication) and further updates at 20:42:08.4, 09.3 and 10.7 as members acknowledged. The node dnsdist followed the same pattern from 20:42:06.3 to 20:42:17.7. The serving agents log nothing, so exact per-member timing isn't visible.
The rendered dnsdist rules return SERVFAIL for a zone when its member pool is empty (render.go), and the node dnsdist uses the same per-zone ready set.
The writer epoch is bumped when a control-plane process with a new identity takes over a zone's lease (publication_reconciler.go, acquireOwnership). The identity is the hostname plus random bytes for each process (runtime/run.go, newProcessIdentity), so every restart or rollout bumps the epoch once the old lease expires. The control-plane rollout at about 20:31 (metrics enablement) took the zone from epoch 49 to 50.
Activity
scotwells commentedon Oct 22, 2026
Reproduced this with ordinary scaling, not only control-plane restarts. I resolved two unchanged instance names from inside a VPC, through
fd53::53, about twice a second while scaling a workload in the same VPC (us-central-1 staging lab, 2026-10-22, serving fleet stable since 22:26).So every instance add or remove currently takes out private resolution for the entire VPC for a second or more.
scotwells commentedon Oct 29, 2026
The description now explains the problem and expected outcome in plain language. The original report is preserved below for the observations, diagnostics, and implementation details behind this work. It describes the situation when the issue was reported; later comments and the issue state record subsequent progress.
Original report and engineering evidence
What happened
On 2026-10-22 at about 20:42 UTC, private DNS names in a staging project failed to resolve (SERVFAIL) for a few seconds while the DNS fleet switched to a new version of the project's zone. Public names kept working, and it recovered on its own.
Why it happens
When the fleet's routing layer receives a new version of a zone, it immediately stops sending queries for that zone to any DNS server that hasn't confirmed it has the new version, even though those servers are still correctly serving the previous one. Until the first server confirms the new version, there is nowhere to send the query, so the resolver returns SERVFAIL.
This isn't limited to the case we saw. It can happen on every change to a private zone, including ordinary record updates. How long the outage lasts depends on how quickly the DNS servers confirm the update, which in staging was a few seconds.
Restarting the internal DNS control plane makes it more noticeable: each restart takes over ownership of every zone and republishes it as a new version, so every private zone goes through this switch at once.
What we'd like
Where the fix goes
In
internal/internaldns/serving/agent.go,eligibleRegionalMembers(added in the serving-recovery change, feat: Preserve private DNS isolation through serving failures) currently requires each member's acknowledgement to exactly match the agent's newest publication, and drops every member if any acknowledgement is ahead of the agent. Instead, a member should count as ready when its verified acknowledgement satisfies the zone's required publication (theRequiredPublicationEpoch/RequiredPublicationRevisionthe snapshot already carries), so members on the previous valid version keep serving during the switch. This should land as a follow-up PR after the private DNS stack merges, with a test that steps a zone from one version to the next and asserts there is no empty pool in between.Details
render.go), and the node dnsdist uses the same per-zone ready set.publication_reconciler.go,acquireOwnership). The identity is the hostname plus random bytes for each process (runtime/run.go,newProcessIdentity), so every restart or rollout bumps the epoch once the old lease expires. The control-plane rollout at about 20:31 (metrics enablement) took the zone from epoch 49 to 50.[-]Private DNS briefly fails during zone updates[/-][+]Keep private name lookups working while records change[/+]