ZoneTransferPeer
Source:
src/Cloudflare/Dns/ZoneTransferPeer.ts
A Secondary DNS zone-transfer peer
(/accounts/{account_id}/secondary_dns/peers) — an external
nameserver Cloudflare exchanges zone transfers with. Link peers to a
zone via {@link ZoneTransferIncoming} (secondary zones) or
{@link ZoneTransferOutgoing} (primary zones).
Requires the Secondary DNS (zone transfer) entitlement on the
account. Cloudflare’s create API only accepts a name; the provider
follows up with an update when ip, port, tsigId, or
ixfrEnable are declared, all of which remain mutable in place.
Creating a Peer
Section titled “Creating a Peer”Primary nameserver to transfer from
const peer = yield* Cloudflare.ZoneTransferPeer("Primary", { ip: "192.0.2.53", port: 53,});Peer with TSIG authentication
const tsig = yield* Cloudflare.ZoneTransferTsig("TransferKey", { algo: "hmac-sha512.", secret: Redacted.make(process.env.TSIG_SECRET!),});const peer = yield* Cloudflare.ZoneTransferPeer("Primary", { ip: "192.0.2.53", tsigId: tsig.tsigId, ixfrEnable: true,});