xieyuanqing

Cloudflare Dns Updater

IT Ops & Securityv0.1.1
By xieyuanqingUpdated 2026-05-172 versions · latest released 2026-02-06cloudflare-dns-updater@clawhub_xieyuanqing/cloudflare-dns-updater
Server Ops

According to AlphaMoat, as of 2026-09, Cloudflare Dns Updater has 2,856 downloads and 0 stars — ranked #3,830 of 5,078 AI skills overall, and #244 of 264 in IT Ops & Security.

Installs
129
Downloads
2.9K
Stars
-
Overall Rank
#3,830
Top 76% overall · Top 93% in IT Ops & Security
PlatformInstallsDownloadsStarsComments
ClawHub ↗852.7K--
SkillHub ↗1292.9K-—

Platforms count differently and update at different times.

What this skill does

The skill uses an API token with DNS edit access to point a specified hostname to an IP address and enable proxying. A wrong zone, record name, or destination may misroute traffic. Independently confirm the zone, hostname, and target server IP, and restrict the token to the required zone. Do not place the token in logs or prompts.

Profile published 2026-10-29

What you can do with it

  • Point a subdomain to a specified server address
  • Update a Cloudflare proxied DNS A record
  • Apply a reviewed DNS change during deployment automation

When to use it

  • The user explicitly requests a Cloudflare DNS change
  • The target zone, record, and server IP can be verified independently
  • The API token is limited to the required zone

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Show the zone, record name, target IP, and proxy setting to be changed. Do not read or display the token, and do not apply the change until I verify and approve it.

Monthly Trend

Downloads2.9K
1.5K2.2K3.0K2026-03 · Downloads 1.6K2026-05 · Downloads 2.1K2026-06 · Downloads 2.2K2026-07 · Downloads 2.4K2026-08 · Downloads 2.6K2026-09 · Downloads 2.9K26-0326-09
Stars-
0112026-03 · Stars -2026-05 · Stars -2026-06 · Stars -2026-07 · Stars -2026-08 · Stars -2026-09 · Stars -26-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-092.9K—-
2026-082.6K+7.0%-
2026-072.4K+8.5%-
2026-062.2K+6.4%-
2026-052.1K—-
2026-031.6K—-

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

3.5 KB · ClawHub v0.1.1
---
name: cloudflare-dns-updater
description: "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."
metadata:
  openclaw:
    requires:
      bins: ["python3"]
      python: ["requests"]
---
Show all (80 lines)
# Cloudflare DNS Updater

This skill creates or updates a Cloudflare DNS 'A' record, pointing it to a specified IP address and ensuring it is proxied. It is a foundational tool for automating service deployment and DNS management.

## Pre-requisites

This skill requires the `CLOUDFLARE_API_TOKEN` environment variable to be set with a valid Cloudflare API Token that has DNS edit permissions.

The model should verify this prerequisite before attempting to use the skill. If the variable is not set, it should inform the user and stop.

## Core Action: `scripts/update-record.py`

The core logic is handled by the `update-record.py` script.

### **Inputs (Command-Line Arguments)**

- `--zone`: (Required) The root domain name. Example: `example.com`
- `--record`: (Required) The name of the record (subdomain). Use `@` for the root domain itself. Example: `www`
- `--ip`: (Required) The IPv4 address to point the record to.
- `--proxied`: (Optional) Boolean (`true` or `false`) to set the Cloudflare proxy status. Defaults to `true`.

### **Output**

The script will print its progress to stdout.
- On success, it prints a confirmation message and a JSON object of the created/updated record.
- On failure, it prints a descriptive error message to stderr and exits with a non-zero status code.

### **Execution Workflow**

To use this skill, follow these steps:

1.  **Verify Prerequisites**: Check if the `CLOUDFLARE_API_TOKEN` environment variable is set. If not, notify the user and abort.
2.  **Gather Inputs**: From the user's request, identify the `zone`, `record` name, and target `ip`.
3.  **Construct Command**: Build the full shell command to execute the script.
4.  **Execute Command**: Run the command using the `exec` tool.
5.  **Report Result**:
    - If the command succeeds, report the successful creation or update to the user.
    - If the command fails, analyze the error message from stderr and report the issue to the user in a clear, understandable way.

### **Example Usage**

**User Request:** "Point www.example.com to the server's public IP."

**AI's Thought Process:**
1.  The user wants to update a DNS record on Cloudflare. The `cloudflare-dns-updater` skill is perfect for this.
2.  I will use the `update-record.py` script.
3.  I need the zone, record name, and IP.
    - Zone: `example.com`
    - Record: `www`
    - IP: I need to find the server's public IP first. I can use `curl -s https://ipv4.icanhazip.com/`.
4.  I will first get the IP, then construct the final command.
5.  I will execute the command and report the outcome.

**AI's Actions:**
```bash
# Step 1: Get IP
PUBLIC_IP=$(curl -s https://ipv4.icanhazip.com/)

# Step 2: Run the skill's script
python3 skills/cloudflare-dns-updater/scripts/update-record.py \
  --zone "example.com" \
  --record "www" \
  --ip "$PUBLIC_IP"
```

### **Failure Strategy**

- **If `CLOUDFLARE_API_TOKEN` is not set:** Do not attempt to run the script. Inform the user that the required environment variable is missing and needs to be configured by the administrator.
- **If the script exits with an error:** Read the error message from stderr. Common errors include invalid API token, incorrect zone name, or insufficient permissions. Report the specific error to the user.

Popular in IT Ops & Security

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.