ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 3/5

cloudflare-dns

Manage Cloudflare DNS records via API. Use when user asks to list, create, update, or delete DNS records, set up DDNS, manage domains on Cloudflare, or check DNS propagation. Supports A, AAAA, CNAME, TXT, MX, and other record types.

Why use this skill?

Automate Cloudflare DNS record management including creation, updates, and DDNS. Perfect for developers looking to script domain tasks effortlessly.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/pushp1997/cloudflare-dns
Or

What This Skill Does

The cloudflare-dns skill provides an interface to manage Cloudflare DNS configurations directly from your environment. By leveraging the cf-dns.sh utility, it allows users to interact with Cloudflare's API to list, create, update, and delete DNS records. Whether you are managing A, AAAA, CNAME, TXT, or MX records, this tool automates manual dashboard tasks through command-line operations. It is particularly useful for sysadmins and developers managing multiple domains, as it simplifies zone identification and record synchronization without requiring browser-based navigation.

Installation

To integrate this skill into your agent, use the ClawHub installer. Execute the following command in your terminal:

clawhub install openclaw/skills/skills/pushp1997/cloudflare-dns

Once installed, ensure your API credentials are configured. You need a Cloudflare API Token (generated via the Cloudflare Dashboard with the 'Edit zone DNS' template) and your Zone ID. You can set these as environment variables (CF_API_TOKEN and CF_ZONE_ID) to facilitate seamless execution.

Use Cases

This skill is designed for scenarios ranging from routine maintenance to automated infrastructure management. Use it to:

  • Automate DDNS for home servers by updating your public IP against a specific hostname periodically.
  • Provision new subdomains for staging environments programmatically.
  • Manage complex email verification records (SPF, DKIM, DMARC) at scale.
  • Quickly audit DNS propagation or existing record settings by listing records for specific zones without logging into the web GUI.

Example Prompts

  1. "Check the current DNS records for example.com and identify the record ID for 'blog'."
  2. "Update the A record for the 'home' subdomain in my primary zone to my current public IP address."
  3. "Create a new CNAME record for 'dev.example.com' pointing to 'origin.example.com' with proxy enabled."

Tips & Limitations

  • Proxying: Use the --proxied flag to enable the orange cloud, which hides your origin IP and utilizes Cloudflare's CDN. Without this flag, the record will point directly to your server.
  • TTL Settings: Use 1 as the TTL value to trigger 'Auto' mode when proxied.
  • Script Output: The underlying script returns JSON responses. Use tools like jq to parse specific data points if building higher-level automation flows.
  • Security: Keep your API tokens secure. Avoid committing files containing hardcoded tokens to version control systems; instead, utilize secret management tools or environment variables.

Metadata

Author@pushp1997
Stars1171
Views1
Updated2026-02-19
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-pushp1997-cloudflare-dns": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#cloudflare#dns#networking#automation#sysadmin
Safety Score: 3/5

Flags: network-access, external-api, code-execution