DNS
dns
Analytics
dns.analytics
Methods
Retrieves a list of summarised aggregate metrics over a given time period.
See Analytics API properties for detailed information about the available query parameters.
Domain types
Methods
Retrieves a list of aggregate metrics grouped by time interval.
See Analytics API properties for detailed information about the available query parameters.
Domain types
DNSSEC
dns.dnssec
Methods
Details about DNSSEC status and configuration.
Enable or disable DNSSEC.
Delete DNSSEC.
Domain types
Records
dns.records
Methods
List, search, sort, and filter a zones' DNS records.
DNS Record Details
Create a new DNS record for a zone.
Notes:
- A/AAAA records cannot exist on the same name as CNAME records.
- NS records cannot exist on the same name as any other record type.
- Domain names are always represented in Punycode, even if Unicode characters were used when creating the record.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
DNS Write
Identifier.
Whether the API call was successful.
Overwrite an existing DNS record.
Notes:
- A/AAAA records cannot exist on the same name as CNAME records.
- NS records cannot exist on the same name as any other record type.
- Domain names are always represented in Punycode, even if Unicode characters were used when creating the record.
Update an existing DNS record.
Notes:
- A/AAAA records cannot exist on the same name as CNAME records.
- NS records cannot exist on the same name as any other record type.
- Domain names are always represented in Punycode, even if Unicode characters were used when creating the record.
Delete DNS Record
You can export your BIND config through this endpoint.
See the documentation for more information.
You can upload your BIND config through this endpoint. It assumes that cURL is called from a location with bind_config.txt (valid BIND config) present.
See the documentation for more information.
Deprecated
This endpoint is deprecated in favor of a new asynchronous version. Please use the /scan/trigger and /scan/review endpoints instead.
Scan for common DNS records on your domain and automatically add them to your zone. Useful if you haven't updated your nameservers yet.
Initiates an asynchronous scan for common DNS records on your domain. Note that this does not automatically add records to your zone. The scan runs in the background, and results can be reviewed later using the /scan/review endpoints. Useful if you haven't updated your nameservers yet.
Accept or reject DNS records found by the DNS records scan. Accepted records will be permanently added to the zone, while rejected records will be permanently deleted.
Retrieves the list of DNS records discovered up to this point by the asynchronous scan. These records are temporary until explicitly accepted or rejected via POST /scan/review. Additional records may be discovered by the scan later.
Send a Batch of DNS Record API calls to be executed together.
Notes:
Although Cloudflare will execute the batched operations in a single database transaction, Cloudflare's distributed KV store must treat each record change as a single key-value pair. This means that the propagation of changes is not atomic. See the documentation for more information.
The operations you specify within the /batch request body are always executed in the following order:
- Deletes
- Patches
- Puts
- Posts
Domain types
Individual tag of the form name:value (the name must consist of only letters, numbers, underscores and hyphens)
Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones.
Settings
dns.settings
Methods
List DNS Internal Views for an Account
Get DNS Internal View
Create Internal DNS View for an account
Update an existing Internal DNS View
Delete an existing Internal DNS View
Methods
Show DNS settings for a zone
Update DNS settings for a zone
Zone Transfers
dns.zone_transfers
dns.zone_transfers.acls
Methods
List ACLs.
Get ACL.
Create ACL.
Modify ACL.
Delete ACL.
Domain types
dns.zone_transfers.force_axfr
Methods
Sends AXFR zone transfer request to primary nameserver(s).
Domain types
When force_axfr query parameter is set to true, the response is a simple string.
dns.zone_transfers.incoming
Methods
Get secondary zone configuration for incoming zone transfers.
Create secondary zone configuration for incoming zone transfers.
Update secondary zone configuration for incoming zone transfers.
Delete secondary zone configuration for incoming zone transfers.
Domain types
dns.zone_transfers.outgoing
Methods
Get primary zone configuration for outgoing zone transfers.
Create primary zone configuration for outgoing zone transfers.
Update primary zone configuration for outgoing zone transfers.
Delete primary zone configuration for outgoing zone transfers.
Disable outgoing zone transfers for primary zone and clears IXFR backlog of primary zone.
Enable outgoing zone transfers for primary zone.
Notifies the secondary nameserver(s) and clears IXFR backlog of primary zone.
Domain types
The zone transfer status of a primary zone.
The zone transfer status of a primary zone.
The zone transfer status of a primary zone.
dns.zone_transfers.outgoing.status
Methods
Get primary zone transfer status.
dns.zone_transfers.peers
Methods
List Peers.
Get Peer.
Create Peer.
Modify Peer.
Delete Peer.
Domain types
dns.zone_transfers.tsigs
Methods
List TSIGs.
Get TSIG.
Create TSIG.
Modify TSIG.
Delete TSIG.
Domain types