cloudflare-dns-updater
Creates or updates a proxied Cloudflare DNS A record. Use when you need to programmatically point a subdomain to an IP address. Takes record name, zone name, and IP address as input.
Why use this skill?
Manage your Cloudflare A records automatically with this OpenClaw skill. Perfect for dynamic IPs, staging environments, and automated service deployments.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/xieyuanqing/cloudflare-dns-updaterWhat This Skill Does
The Cloudflare DNS Updater skill provides a seamless way to manage your DNS infrastructure programmatically. By integrating directly with Cloudflare's API, this tool enables you to create or update 'A' records for any of your zones. Whether you are scaling your infrastructure, automating deployment pipelines, or simply managing home-server IP changes, this skill handles the heavy lifting of interacting with Cloudflare's platform. It automatically ensures your records are proxied through Cloudflare’s CDN, providing immediate protection and performance benefits.
Installation
To install this skill, run the following command in your terminal:
clawhub install openclaw/skills/skills/xieyuanqing/cloudflare-dns-updater
Ensure that you have generated an API Token with 'DNS:Edit' permissions in your Cloudflare dashboard. Once installed, export your token as an environment variable in your shell profile:
export CLOUDFLARE_API_TOKEN='your_token_here'
Use Cases
- Automated Service Deployment: Update DNS records dynamically after provisioning new cloud instances.
- Dynamic IP Resolution: Keep your home server or office subdomains pointing to your current public IP, especially useful for changing ISP addresses.
- Environment Staging: Quickly point subdomains like 'staging' or 'dev' to specific server nodes during continuous integration workflows.
- Security Infrastructure: Effortlessly toggle the Cloudflare proxy status for specific subdomains as security requirements change.
Example Prompts
- "Point api.mycompany.com to 192.168.1.50 in the mycompany.com zone."
- "Update the DNS record for 'blog' under example.com to the current public IP of this machine."
- "Create an A record for 'test-server' on 'example.com' pointing to 104.21.33.1 and disable the proxy."
Tips & Limitations
- Token Security: Always treat your
CLOUDFLARE_API_TOKENas a sensitive secret. Never hardcode it into scripts that are committed to public repositories. - Record Limits: Cloudflare has limits on the number of DNS records per zone; ensure you are not hitting these limits during large-scale automation.
- Propogation Time: While the update is immediate on Cloudflare’s edge, remember that global DNS propagation and local machine caching (TTL) can still cause delays in record updates across the internet.
- Input Validation: The script expects valid IPv4 formats; double-check your IP strings if you encounter errors.
Metadata
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-xieyuanqing-cloudflare-dns-updater": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api, code-execution