Package Exports
- @hienhoceo/n8n-nodes-cloudflare-dns
- @hienhoceo/n8n-nodes-cloudflare-dns/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hienhoceo/n8n-nodes-cloudflare-dns) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
n8n Cloudflare DNS Toolkit
Interact with the complete Cloudflare DNS feature set from your n8n workflows, including record lifecycle, bulk zone file import/export, DNSSEC governance, analytics reporting, and automated record scans.
Installation
Option 1: Install from npm registry
npm install @hienhoceo/n8n-nodes-cloudflare-dnsOption 2: Install in n8n
- In your self-hosted n8n instance open Settings → Community Nodes.
- Add the package name
@hienhoceo/n8n-nodes-cloudflare-dns. - Restart n8n if prompted.
Author
hienhoceo GitHub: @hienhoceo Email: hienhoceo@example.com
Features
- Manage DNS records end-to-end: create, update, patch, get, list, delete, and trigger Cloudflare’s record scanner.
- Execute bulk operations with BIND zone file import/export straight from n8n binaries.
- Monitor and adjust DNS security posture via DNSSEC read and update operations.
- Run DNS analytics queries and reports, including custom dimensions, metrics, filters, and time slicing.
- Auto-load Cloudflare zones and existing records into n8n selectors thanks to dynamic
loadOptions. - Built with n8n community-node best practices: request defaults, granular error handling with
continueOnFail, pagination helpers, and token verification.
Installation
- In your self-hosted n8n instance open Settings → Community Nodes.
- Add the package name
n8n-nodes-cloudflare-dns. - Restart n8n if prompted.
Credentials
Create a Cloudflare API token with:
- Zone:Zone – Read
- Zone:DNS – Edit
- Optional: Zone:Analytics:Read for analytics endpoints.
Once the token is generated, configure the Cloudflare DNS API credential in n8n by pasting the token into the API Token field. The built-in credential test calls /user/tokens/verify to confirm access.
Resources & Operations
DNS Records
- Create / Update – Supports all Cloudflare record types (A, AAAA, CAA, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, SPF, SRV, SSHFP, SVCB, TLSA, TXT, URI) with advanced payloads via the
Data (JSON)field. - Patch – Partially modify a record by supplying raw JSON.
- Get – Retrieve a single record by ID.
- Get Many – Paginated listing with filters for name, content, type, tags, proxied status, ordering, and match strategy. Toggle
Return Allor set aLimit. - Delete – Remove a record by ID.
- Scan – Trigger Cloudflare’s DNS scanner for the zone to discover DNS records.
Zone Files
- Export – Download the entire zone in BIND format and store it as binary data within the execution.
- Import – Upload a BIND zone file from any binary property to bulk-create/update records.
DNSSEC
- Get – Inspect the current DNSSEC status, DS records, and signature metadata.
- Update – Toggle DNSSEC or inherit the account default configuration.
DNS Analytics
- Query – Run ad-hoc analytics with custom dimensions and metrics.
- Report – Produce aggregated reports with optional time slicing, sorting, filters, and result limits.
Usage Tips
- Prefer the dynamic
ZoneandDNS Recorddropdowns; they call the Cloudflare API to stay in sync with your account. - For complex record payloads (SRV, HTTPS, LOC, etc.) place the raw JSON into
Data (JSON)– the node validates and passes it through untouched. - When importing a zone file, attach it as binary data in a preceding node (e.g., HTTP Request, Read Binary File) and reference the property name in the import operation.
- Enable Continue On Fail in the node options if you want subsequent items to keep processing when Cloudflare returns an error for a specific input.
Development
npm install
npm run lint
npm run buildThe prepublishOnly script runs build and lint steps to ensure TypeScript and ESLint stay in sync with n8n expectations.
License
MIT © CÔNG TY CỔ PHẦN DPS.MEDIA