DNS
dns
Domain types
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
Delete DNSSEC.
Enable or disable DNSSEC.
Details about DNSSEC status and configuration.
Domain types
Records
dns.records
Methods
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
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.
Delete DNS 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.
You can export your BIND config through this endpoint.
See the documentation for more information.
DNS Record Details
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.
List, search, sort, and filter a zones' DNS records.
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example: X-Auth-Email: user@example.com
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example: X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
DNS Read DNS Write
Identifier
If this parameter is present, only records without a comment are returned.
Substring of the DNS record comment. Comment filters are case-insensitive.
Suffix of the DNS record comment. Comment filters are case-insensitive.
Exact value of the DNS record comment. Comment filters are case-insensitive.
If this parameter is present, only records with a comment are returned.
Prefix of the DNS record comment. Comment filters are case-insensitive.
Substring of the DNS record content. Content filters are case-insensitive.
Suffix of the DNS record content. Content filters are case-insensitive.
Exact value of the DNS record content. Content filters are case-insensitive.
Prefix of the DNS record content. Content filters are case-insensitive.
Direction to order DNS records in.
Whether to match all search requirements or at least one (any). If set to all
, acts like a logical AND between filters. If set to any
, acts like a logical OR instead. Note that the interaction between tag filters is controlled by the tag-match
parameter instead.
Substring of the DNS record name. Name filters are case-insensitive.
Suffix of the DNS record name. Name filters are case-insensitive.
Exact value of the DNS record name. Name filters are case-insensitive.
Prefix of the DNS record name. Name filters are case-insensitive.
Field to order DNS records by.
Page number of paginated results.
Number of DNS records per page.
Whether the record is receiving the performance and security benefits of Cloudflare.
Allows searching in multiple properties of a DNS record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future. This parameter works independently of the match
setting. For automated searches, please use the other available parameters.
Name of a tag which must not be present on the DNS record. Tag filters are case-insensitive.
A tag and value, of the form <tag-name>:<tag-value>
. The API will only return DNS records that have a tag named <tag-name>
whose value contains <tag-value>
. Tag filters are case-insensitive.
A tag and value, of the form <tag-name>:<tag-value>
. The API will only return DNS records that have a tag named <tag-name>
whose value ends with <tag-value>
. Tag filters are case-insensitive.
A tag and value, of the form <tag-name>:<tag-value>
. The API will only return DNS records that have a tag named <tag-name>
whose value is <tag-value>
. Tag filters are case-insensitive.
Name of a tag which must be present on the DNS record. Tag filters are case-insensitive.
A tag and value, of the form <tag-name>:<tag-value>
. The API will only return DNS records that have a tag named <tag-name>
whose value starts with <tag-value>
. Tag filters are case-insensitive.
Whether to match all tag search requirements or at least one (any). If set to all
, acts like a logical AND between tag filters. If set to any
, acts like a logical OR instead. Note that the regular match
parameter is still used to combine the resulting condition with other filters that aren't related to tags.
Record type.
Whether the API call was successful
Scan for common DNS records on your domain and automatically add them to your zone. Useful if you haven't updated your nameservers yet.
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.
Domain types
Settings
dns.settings
Methods
Update DNS settings for an account or zone
Show DNS settings for an account or zone
Domain types
Methods
Create Internal DNS View for an account
Delete an existing Internal DNS View
Update an existing Internal DNS View
Get DNS Internal View
List DNS Internal Views for an Account
Zone Transfers
dns.zone_transfers
dns.zone_transfers.acls
Methods
Create ACL.
Delete ACL.
Get ACL.
List ACLs.
Modify ACL.
Domain types
dns.zone_transfers.force_axfr
Methods
Sends AXFR zone transfer request to primary nameserver(s).
Domain types
dns.zone_transfers.incoming
Methods
Create secondary zone configuration for incoming zone transfers.
Delete secondary zone configuration for incoming zone transfers.
Get secondary zone configuration for incoming zone transfers.
Update secondary zone configuration for incoming zone transfers.
Domain types
dns.zone_transfers.outgoing
Methods
Create 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.
Get primary zone configuration for outgoing zone transfers.
Update primary zone configuration for outgoing zone transfers.
Domain types
dns.zone_transfers.outgoing.status
Methods
Get primary zone transfer status.
dns.zone_transfers.peers
Methods
Create Peer.
Delete Peer.
Get Peer.
List Peers.
Modify Peer.
Domain types
dns.zone_transfers.tsigs
Methods
Create TSIG.
Delete TSIG.
Get TSIG.
List TSIGs.
Modify TSIG.
Domain types