# Cloudflare DNS Integrations

Update host addresses, provision customer subdomains, track mail settings and back up zone records with Cloudflare DNS.

## Setup notes

- **Connect a scoped API token** Enter your Cloudflare account ID and a token scoped to the intended zone. Grant Zone Read to browse zones and DNS Edit to write records. Read-only workflows can use DNS Read.
- **Choose an action for your zone** Manage records individually or in batches, inspect DNS settings and export records in BIND format. Advanced features such as secondary DNS, custom nameservers and analytics depend on your plan and token permissions.
- **Watch mail configuration** Select a domain to poll for changes to its MX, SPF and DMARC records. The first check establishes a baseline. Later checks can record the previous and current values in D1 or send a Slack notification.

## Workflow templates

- [Notify ntfy when a domain has no mail DNS records](https://www.fasthook.io/templates/cloudflare-dns-empty-mail-check-to-ntfy.md): Watch a domain that should have mail configured.
- [Publish a stable GitHub release tag in DNS](https://www.fasthook.io/templates/github-releases-to-cloudflare-dns-txt.md): Expose the latest published stable release tag as the content of a dedicated TXT record, so operators can read the version with a DNS lookup.
- [Route occupied customer hostnames to Trello](https://www.fasthook.io/templates/cloudflare-dns-alias-conflicts-to-trello.md): Try to reserve a requested hostname for your service.
- [Queue mail DNS changes for downstream consumers](https://www.fasthook.io/templates/cloudflare-dns-mail-events-to-amazon-sqs.md): Deliver an observed DNS change as one JSON message so a worker can process it asynchronously and retry independently.
- [Keep a queryable mail DNS history in PostgreSQL](https://www.fasthook.io/templates/cloudflare-dns-mail-audit-to-postgresql.md): Store each observed change to MX, SPF or DMARC with the domain, timestamp and both configurations.
- [Send Telegram a receipt when a host address changes](https://www.fasthook.io/templates/cloudflare-dns-address-changes-to-telegram.md): Update a configured host from a private webhook and notify its operator only when Cloudflare creates or changes the address.
- [Alert Discord when DNSSEC is not active](https://www.fasthook.io/templates/cloudflare-dnssec-status-to-discord.md): Check the signing status Cloudflare reports for one zone.
- [Keep dated mail DNS snapshots in Google Drive](https://www.fasthook.io/templates/cloudflare-dns-mail-snapshots-to-google-drive.md): Give your mail administrator a dated text file listing the domain’s MX, SPF and DMARC records, including days when the configuration stays the same.
- [Back up a DNS zone to Dropbox](https://www.fasthook.io/templates/cloudflare-dns-zone-backups-to-dropbox.md): Save a BIND zone file to a private Dropbox folder each day.
- [Reserve customer hostnames from a Tally form](https://www.fasthook.io/templates/tally-customer-hostnames-to-cloudflare-dns.md): A submission to your onboarding form reserves a CNAME beneath your customer domain.
- [Update a host’s IP address from a webhook](https://www.fasthook.io/templates/webhook-ip-updates-to-cloudflare-dns.md): Send an address to a private webhook to update one configured host.
- [Reserve approved customer subdomains from Google Sheets](https://www.fasthook.io/templates/google-sheets-customer-subdomains-to-cloudflare-dns.md): Create a CNAME for each approved customer request.
- [Archive DNS records to R2 on a schedule](https://www.fasthook.io/templates/cloudflare-dns-zone-exports-to-r2.md): Save a dated BIND zone file in a private R2 bucket.
- [Log mail DNS changes in D1 and notify Slack](https://www.fasthook.io/templates/cloudflare-dns-mail-changes-to-d1-and-slack.md): Watch a domain’s MX, SPF and DMARC records.

## Triggers

1 Polling

- **Mail routing or authentication changed** (Polling) — Start when the observed MX, SPF or DMARC records differ from the previous check. The first check saves a baseline.

## Actions

- **Accept or reject discovered records** — Choose which records from the latest scan should be added to your zone.
- **Add a custom nameserver to the account** — Register the hostname customers will use as a nameserver.
- **Add a custom nameserver to the tenant** — Register a branded nameserver in the selected tenant.
- **Add a DNS transfer peer** — Register a DNS server that participates in zone transfers.
- **Apply a batch of DNS changes** — Submit record additions, edits and deletions together for one zone.
- **Change DNSSEC signing settings** — Update DNSSEC status and signing options for this zone.
- **Change the account’s default DNS settings** — Update the selected defaults for DNS in this account.
- **Change the zone’s custom nameserver assignment** — Configure which account custom nameservers serve this zone.
- **Change the zone’s DNS settings** — Apply selected changes to the DNS configuration of one zone.
- **Check DNS record usage across the account** — Read the account’s DNS record usage for capacity reporting.
- **Check DNS record usage for a zone** — Read the zone’s DNS record usage for capacity planning.
- **Check outgoing zone transfer status** — Inspect the most recent outgoing transfer state for the zone.
- **Configure incoming zone transfers** — Set up Cloudflare as a secondary server for the selected zone.
- **Configure outgoing zone transfers** — Set up Cloudflare as the primary DNS server for transfer peers.
- **Create a DNS record** — Add a record with the chosen hostname, type, value and routing options.
- **Create a nameserver set** — Group nameservers into a set for use by your zones.
- **Create a transfer signing key** — Register a TSIG key for authenticated communication between DNS servers.
- **Create a zone transfer access rule** — Add an IP range to the secondary DNS access configuration.
- **Create an internal DNS view** — Define a view for an internal DNS audience.
- **Delete a DNS record** — Remove one record by ID from the selected zone.
- **Delete a DNS transfer peer** — Remove the selected server from the transfer peer configuration.
- **Delete a nameserver set** — Remove the selected group of custom nameservers from the account.
- **Delete a transfer signing key** — Remove the selected TSIG key from the account.
- **Delete a zone transfer access rule** — Remove the selected access rule from the account.
- **Delete an internal DNS view** — Remove a selected view from the internal DNS configuration.
- **Edit a nameserver set** — Change the configuration of an existing set of custom nameservers.
- **Edit an internal DNS view** — Update the selected view used for internal DNS resolution.
- **Edit selected fields of a DNS record** — Change fields such as the address or TTL while preserving other record settings.
- **Enable outgoing zone transfers** — Allow the configured secondary DNS servers to receive the zone.
- **Export records as a BIND zone file** — Save matching records in a portable text file for review or backup.
- **Find DNS records in a zone** — Filter records by hostname, type or content and page through the matches.
- **Import records from a BIND zone file** — Add DNS records to the zone from BIND-formatted text.
- **List DNS transfer peers** — Find the other DNS servers configured for zone transfers.
- **List DNSSEC zone-signing keys** — Inspect the keys Cloudflare uses to sign the zone’s records.
- **List internal DNS views** — Find the views that determine which internal DNS records a client sees.
- **List nameserver sets** — Find the groups of custom nameservers available to assign to zones.
- **List the account’s custom nameservers** — Find the branded nameservers configured for this Cloudflare account.
- **List the tenant’s custom nameservers** — Find branded nameservers managed at tenant level.
- **List transfer signing keys** — Find the TSIG keys configured to authenticate zone transfers.
- **List zone transfer access rules** — Find the network rules used to authorize secondary DNS traffic.
- **Notify secondary servers of a zone change** — Send DNS NOTIFY so the secondary servers can check for fresh zone data.
- **Pause outgoing zone transfers** — Stop sending transfers to the configured secondary DNS servers.
- **Read a DNS record** — Look up a record’s value, type, hostname and routing settings by ID.
- **Read a DNS transfer peer** — Inspect the address, port and transfer settings for a peer.
- **Read a nameserver set** — Inspect the nameservers in one selected set.
- **Read a transfer signing key** — Inspect the configuration of one TSIG key used for transfers.
- **Read a zone transfer access rule** — Look up the network range and name of one access rule.
- **Read an internal DNS view** — Look up the name and configuration of one internal view.
- **Read DNSSEC status and delegation details** — Inspect the zone’s signing status and the information used for delegation.
- **Read incoming zone transfer settings** — Inspect how Cloudflare receives records as the secondary DNS provider.
- **Read individual DNS queries for the account** — Look up DNS queries by time, query name, type or response code. Requires Analytics Read for the selected account.
- **Read individual DNS queries for the zone** — Look up DNS queries by time, query name, type or response code. Requires Analytics Read for the selected zone.
- **Read mail routing and authentication records** — Collect and sort the domain’s MX, SPF and DMARC records for comparison with an earlier snapshot.
- **Read outgoing zone transfer settings** — Inspect how Cloudflare shares the zone with secondary DNS servers.
- **Read the account’s default DNS settings** — Inspect the DNS defaults that apply at account level.
- **Read the zone’s custom nameserver assignment** — See how this zone uses the account’s custom nameservers.
- **Read the zone’s DNS settings** — Inspect DNS configuration for this individual zone.
- **Remove a tenant custom nameserver** — Delete the selected branded nameserver from the tenant.
- **Remove an account custom nameserver** — Remove the selected branded nameserver from the account.
- **Remove incoming zone transfer settings** — Remove the configuration used to receive transfers from a primary DNS server.
- **Remove outgoing zone transfer settings** — Remove the configuration used to send zone data to secondary servers.
- **Remove the zone’s DNSSEC configuration** — Remove DNSSEC data for the selected zone.
- **Replace a DNS record** — Supply a complete replacement for an existing record.
- **Replace a DNS transfer peer** — Update the connection settings for the selected DNS server.
- **Replace a transfer signing key** — Update the selected TSIG key’s authentication settings.
- **Replace a zone transfer access rule** — Update the network range and name of a secondary DNS access rule.
- **Replace incoming zone transfer settings** — Update the primary peers and incoming transfer configuration.
- **Replace outgoing zone transfer settings** — Update the secondary peers and outgoing transfer configuration.
- **Request a full incoming zone transfer** — Tell Cloudflare to request a fresh AXFR copy from the primary DNS server.
- **Reserve a customer subdomain** — Create a CNAME under the selected parent domain and report a conflict when the requested name is occupied.
- **Review discovered DNS records** — Inspect the records found by a scan before approving an import.
- **Scan and import DNS records** — Run the legacy scan that discovers and adds common records.
- **Start a DNS record scan** — Ask Cloudflare to look for common DNS records and review the results later.
- **Summarize DNS queries** — Group query counts and response metrics for a zone and time range.
- **Summarize DNS traffic for the account** — Group DNS traffic by the selected dimensions and compare counts. Requires Analytics Read for the selected account.
- **Summarize DNS traffic for the zone** — Group DNS traffic by the selected dimensions and compare counts. Requires Analytics Read for the selected zone.
- **Track DNS queries over time** — Compare query traffic and response metrics across time intervals.
- **Update a host’s IP address** — Create an A or AAAA record or change its IP address. Repeated deliveries keep the same record.
