Skip to content
Start here

Peers

List Peers
client.dns.zoneTransfers.peers.list(PeerListParams { account_id } params, RequestOptionsoptions?): SinglePage<Peer { id, name, ip, 3 more } >
GET/accounts/{account_id}/secondary_dns/peers
Peer Details
client.dns.zoneTransfers.peers.get(stringpeerId, PeerGetParams { account_id } params, RequestOptionsoptions?): Peer { id, name, ip, 3 more }
GET/accounts/{account_id}/secondary_dns/peers/{peer_id}
Create Peer
client.dns.zoneTransfers.peers.create(PeerCreateParams { account_id, name } params, RequestOptionsoptions?): Peer { id, name, ip, 3 more }
POST/accounts/{account_id}/secondary_dns/peers
Update Peer
client.dns.zoneTransfers.peers.update(stringpeerId, PeerUpdateParams { account_id, name, ip, 3 more } params, RequestOptionsoptions?): Peer { id, name, ip, 3 more }
PUT/accounts/{account_id}/secondary_dns/peers/{peer_id}
Delete Peer
client.dns.zoneTransfers.peers.delete(stringpeerId, PeerDeleteParams { account_id } params, RequestOptionsoptions?): PeerDeleteResponse { id }
DELETE/accounts/{account_id}/secondary_dns/peers/{peer_id}
ModelsExpand Collapse
Peer { id, name, ip, 3 more }
id: string
name: string

The name of the peer.

ip?: string

IPv4/IPv6 address of primary or secondary nameserver, depending on what zone this peer is linked to. For primary zones this IP defines the IP of the secondary nameserver Cloudflare will NOTIFY upon zone changes. For secondary zones this IP defines the IP of the primary nameserver Cloudflare will send AXFR/IXFR requests to.

ixfr_enable?: boolean

Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary zones.

port?: number

DNS port of primary or secondary nameserver, depending on what zone this peer is linked to.

tsig_id?: string

TSIG authentication will be used for zone transfer if configured.

PeerDeleteResponse { id }
id?: string