Skip to content

ZoneTransferOutgoing

Source: src/Cloudflare/Dns/ZoneTransferOutgoing.ts

The outgoing zone-transfer configuration of a primary zone (/zones/{zone_id}/secondary_dns/outgoing) — links the zone to the {@link ZoneTransferPeer | peers} Cloudflare NOTIFYs and serves AXFR/IXFR to, and toggles transfers on or off via the dedicated enable/disable endpoints.

Requires the Secondary DNS (zone transfer) entitlement on the zone. The configuration is a per-zone singleton: zoneId is the identity (replacement on change), everything else is mutable in place.

Serve a primary zone to an external secondary

const peer = yield* Cloudflare.ZoneTransferPeer("Secondary", {
ip: "192.0.2.53",
port: 53,
});
yield* Cloudflare.ZoneTransferOutgoing("Outgoing", {
zoneId: zone.zoneId,
name: "example.com.",
peers: [peer.peerId],
});

Configure transfers but keep them disabled

yield* Cloudflare.ZoneTransferOutgoing("Outgoing", {
zoneId: zone.zoneId,
name: "example.com.",
peers: [peer.peerId],
enabled: false,
});