Skip to content

ZoneTransferIncoming

Source: src/Cloudflare/DNS/ZoneTransferIncoming.ts

The incoming zone-transfer configuration of a secondary zone (/zones/{zone_id}/secondary_dns/incoming) — links the zone to the peers Cloudflare transfers it in from and sets the auto-refresh interval.

Requires the Secondary DNS (zone transfer) entitlement, and the zone must be created with type: "secondary". The configuration is a per-zone singleton: zoneId is the identity (replacement on change), everything else is mutable in place.

const peer = yield* Cloudflare.DNS.ZoneTransferPeer("Primary", {
ip: "192.0.2.53",
port: 53,
});
yield* Cloudflare.DNS.ZoneTransferIncoming("Incoming", {
zoneId: zone.zoneId,
name: "example.com.",
peers: [peer.peerId],
autoRefreshSeconds: 86400,
});