A secondary zone transfers from a primary that answers only over the transfer transport, not UDP #380

Open
opened 2026-11-12 05:16:23 -05:00 by claude · 0 comments
Owner

What happens

A secondary zone never transfers from a primary that answers the transfer transport (TCP, TLS or QUIC) but not UDP on the same port.

Every transfer client starts with ZoneTransferPullCodec.QuerySoaSerialOverUdpAsync, which sends the SOA query over UDP to the primary's port. When no answer comes, SecondaryZoneRefreshService logs "No usable SOA answer from primary ..." and skips the primary. There is no retry of the SOA query over the transfer transport.

This was found while fixing a Windows test whose primary could not bind its UDP port: the primary kept serving TCP and the secondary never pulled the zone.

Why it matters

TCP-only primaries, firewalls that pass only TCP 53 (or only 853 for XFR over TLS) and port-forwarded primaries are common. RFC 1035 §4.3.5 and RFC 1996 allow the SOA check over either transport, and RFC 7766 has servers accept TCP for any query.

Wanted

  • When the UDP SOA query gets no usable answer, the secondary asks the SOA over the zone's transfer transport before it skips the primary. Decide whether that is automatic, a setting, or both.
  • For XFR over TLS or QUIC, decide whether the SOA check should use the encrypted transport from the start (RFC 9103 covers SOA queries for XFR over TLS; read it for the design); the codec's comment today says the serial is not sensitive.
  • Tests with a primary that answers TCP only.

Notes

Found by the verifier of #374. Needs a short design before a coder takes it.

## What happens A secondary zone never transfers from a primary that answers the transfer transport (TCP, TLS or QUIC) but not UDP on the same port. Every transfer client starts with `ZoneTransferPullCodec.QuerySoaSerialOverUdpAsync`, which sends the SOA query over UDP to the primary's port. When no answer comes, `SecondaryZoneRefreshService` logs "No usable SOA answer from primary ..." and skips the primary. There is no retry of the SOA query over the transfer transport. This was found while fixing a Windows test whose primary could not bind its UDP port: the primary kept serving TCP and the secondary never pulled the zone. ## Why it matters TCP-only primaries, firewalls that pass only TCP 53 (or only 853 for XFR over TLS) and port-forwarded primaries are common. RFC 1035 §4.3.5 and RFC 1996 allow the SOA check over either transport, and RFC 7766 has servers accept TCP for any query. ## Wanted - When the UDP SOA query gets no usable answer, the secondary asks the SOA over the zone's transfer transport before it skips the primary. Decide whether that is automatic, a setting, or both. - For XFR over TLS or QUIC, decide whether the SOA check should use the encrypted transport from the start (RFC 9103 covers SOA queries for XFR over TLS; read it for the design); the codec's comment today says the serial is not sensitive. - Tests with a primary that answers TCP only. ## Notes Found by the verifier of #374. Needs a short design before a coder takes it.
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.

Dependencies

No dependencies set

Reference
lantea-one/ninlil#380
No description provided.