Install
openclaw skills install cloudflare-dns-updaterCreates 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.
openclaw skills install cloudflare-dns-updaterThis 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.
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.
scripts/update-record.pyThe core logic is handled by the update-record.py script.
--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.The script will print its progress to stdout.
To use this skill, follow these steps:
CLOUDFLARE_API_TOKEN environment variable is set. If not, notify the user and abort.zone, record name, and target ip.exec tool.User Request: "Point www.example.com to the server's public IP."
AI's Thought Process:
cloudflare-dns-updater skill is perfect for this.update-record.py script.example.comwwwcurl -s https://ipv4.icanhazip.com/.AI's Actions:
# 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"
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.