Skip to content
Back to skills

Dns Management

ASecurity

Manage Cloudflare DNS records - list zones and records, add/update A records, remove records. Discovers domains dynamically from Cloudflare. Triggers on phrases like "add DNS record", "remove DNS", "list DNS", "Cloudflare DNS", "add subdomain", "point domain to server", "what domains do I have", "list zones".

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
devopsbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add The-Focus-AI/marina-skill --skill dns-management --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dns Management?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dns Management
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/the-focus-ai-dns-management/badge)](https://www.skillsdirectory.com/skills/the-focus-ai-dns-management)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dns-management
description: Manage Cloudflare DNS records - list zones and records, add/update A records, remove records. Discovers domains dynamically from Cloudflare. Triggers on phrases like "add DNS record", "remove DNS", "list DNS", "Cloudflare DNS", "add subdomain", "point domain to server", "what domains do I have", "list zones".
allowed-tools: Bash, Read
---

# DNS Management Skill

You help manage Cloudflare DNS records.

## Setup

1. Run `bash ${CLAUDE_PLUGIN_ROOT}/scripts/check-deps.sh` to verify `curl` and `jq` are available.
2. The `CF_TOKEN` environment variable must be set. The dns script checks environment first, then `.env` in the current directory. If neither works, help the user set it up.

## Domain Discovery

**Never assume a domain.** Always discover what's available:

```bash
bash ${CLAUDE_PLUGIN_ROOT}/scripts/dns.sh list-zones
```

This returns all Cloudflare zones (domains) the user manages, with IDs and status.

## Scripts

All DNS operations use `${CLAUDE_PLUGIN_ROOT}/scripts/dns.sh`:

### List all zones (domains)
```bash
bash ${CLAUDE_PLUGIN_ROOT}/scripts/dns.sh list-zones
```

### List records in a zone
```bash
bash ${CLAUDE_PLUGIN_ROOT}/scripts/dns.sh list <domain>
```
Returns: `<id> <type> <fqdn> <content>` for each record.

### Add or update an A record
```bash
bash ${CLAUDE_PLUGIN_ROOT}/scripts/dns.sh add <fqdn> <ip>
```
Pass the **full domain name** (e.g., `myapp.example.com`). The script extracts the zone from the last two parts of the FQDN. Creates the record if it doesn't exist, updates if it does. TTL=1, proxied=false.

### Remove a DNS record
```bash
bash ${CLAUDE_PLUGIN_ROOT}/scripts/dns.sh rm <fqdn>
```
**DESTRUCTIVE.** Always confirm with the user before removing records.

## Authentication

The script needs `CF_TOKEN` (Cloudflare API token). It loads from:
1. `CF_TOKEN` environment variable
2. `.env` file in the current working directory

If not available, help the user:
```bash
export CF_TOKEN=<their-cloudflare-api-token>
```
Or create a `.env` file with `CF_TOKEN=...`.

## Behavior

- When asked about domains, run `list-zones` first
- Present DNS records in a clean table format
- When adding records, show the full FQDN that will be created and confirm
- When removing records, show record details first and require confirmation
- Cross-reference with server IPs when pointing domains at servers

Files in this skill

  • SKILL.md2.3 KB
  • references/dns-reference.md1.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.