dns-record-analyzer
БесплатноБез исполняемых скриптовНе проверенAudits and troubleshoots DNS records for domains including A, AAAA, CNAME, MX, TXT, SPF, DKIM, DMARC, CAA, and NS records. Use when someone needs to verify…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
DNS Record Analyzer
Overview
This skill queries and analyzes DNS records for domains, checking for correctness, security best practices, and common misconfigurations. It covers standard records (A, CNAME, MX) and email authentication records (SPF, DKIM, DMARC) with specific validation rules for each.
Instructions
Step 1: Query All Record Types
DOMAIN="northwind-labs.dev"
# Core records
dig +short A $DOMAIN
dig +short AAAA $DOMAIN
dig +short CNAME $DOMAIN
dig +short MX $DOMAIN
dig +short NS $DOMAIN
dig +short TXT $DOMAIN
# Email authentication
dig +short TXT $DOMAIN | grep "v=spf1"
dig +short TXT _dmarc.$DOMAIN
dig +short TXT default._domainkey.$DOMAIN
# Security and transport
dig +short CAA $DOMAIN
dig +short SOA $DOMAIN
dig +short DS $DOMAIN # DNSSEC delegation signer (empty = not signed)
dig +short TXT _mta-sts.$DOMAIN # MTA-STS policy pointer
dig +short TXT _smtp._tls.$DOMAIN # TLS-RPT reporting
# Compare resolvers, or ask an authoritative server directly
dig +short TXT $DOMAIN @8.8.8.8
dig +short TXT $DOMAIN @1.1.1.1
dig +nssearch $DOMAIN # SOA serial on every authoritative server
nslookup -type=TXT $DOMAIN works where dig is missing (Windows). Long TXT values come back as several quoted chunks; join them before judging the record.
Step 2: Validate SPF
Check these rules:
- Starts with
v=spf1 - Ends with
-all(hardfail) or~all(softfail) — recommend-all - Exactly one SPF record per name (two
v=spf1TXT records = PermError) - Total DNS lookups ≤ 10 (count
include:,a,mx,ptr,exists:andredirect=, including nested ones;ip4:,ip6:andallare free), and no more than 2 void lookups (names that return nothing) - No
ptrmechanism (deprecated) - No duplicate mechanisms
- All referenced includes resolve (no NXDOMAIN)
- No
+all(this allows anyone to send as your domain)
Step 3: Validate DKIM
For each sending service, check the expected selector:
- Record exists and is a valid RSA public key
- Key is ≥ 1024 bits (recommend 2048; an empty
p=means the key was revoked) - Common selectors:
google(Google Workspace),selector1/selector2(Microsoft 365),s1/s2(SendGrid),k1(Mailchimp); many providers use CNAMEs, so askdig +short CNAMEas well as TXT t=y(testing mode) should NOT be present in production
Step 4: Validate DMARC
v=DMARC1; p=reject; rua=mailto:[email protected]; adkim=s; aspf=r
Check:
p=isquarantineorreject(notnonein production)rua=is present (aggregate reports); if it points to another domain, that domain must publishnorthwind-labs.dev._report._dmarc.reports-vendor.net(your domain, then the vendor domain) authorising itpctbelow 100 only during a staged rollout (none→quarantine→reject); the newer DMARC revision replaces it witht=, so do not rely on it long-termruf=forensic reports are rarely sent by large providers; do not count on them- Subdomain policy
sp=if subdomains send email - Alignment: DMARC passes only if SPF or DKIM passes and the domain matches the From header
- Mailbox providers (Google, Yahoo, and since May 2025 Microsoft Outlook.com) require SPF, DKIM and DMARC from bulk senders (5,000+ messages a day)
Step 5: Check MX Records
- MX records exist and resolve to valid hostnames
- Priority values are reasonable (lower = higher priority)
- No MX pointing to IP addresses or to a CNAME (must be hostnames with A/AAAA); a domain that sends but never receives mail should publish a null MX (
0 .) - Hostnames have valid A/AAAA records
Step 6: Produce Audit Report
Categorize findings as:
- ✅ Correct and secure
- ⚠ Works but suboptimal (with recommendation)
- ❌ Broken or insecure (with exact fix)
Examples
Example 1: Full Domain Audit
User prompt:
Audit all DNS records for myapp.io
Agent output:
DNS Audit — myapp.io
────────────────────
A Records:
✅ 104.21.45.12 (Cloudflare)
✅ 172.67.182.88 (Cloudflare)
AAAA Records:
✅ 2606:4700:3030::6815:2d0c
✅ 2606:4700:3037::ac43:b658
MX Records:
✅ 1 aspmx.l.google.com
✅ 5 alt1.aspmx.l.google.com
✅ 10 alt2.aspmx.l.google.com
(Google also accepts the single record "1 smtp.google.com")
NS Records:
✅ cody.ns.cloudflare.com
✅ krystal.ns.cloudflare.com
SPF:
v=spf1 include:_spf.google.com include:sendgrid.net ~all
✅ Google Workspace authorized
✅ SendGrid authorized
⚠ Using ~all (softfail) — recommend changing to -all
✅ Lookup count: 5 of 10
DKIM:
✅ google._domainkey → valid 2048-bit RSA
❌ s1._domainkey → NXDOMAIN (SendGrid DKIM not configured!)
Fix: Add CNAME s1._domainkey.myapp.io → s1.domainkey.u1234.wl.sendgrid.net
DMARC:
v=DMARC1; p=none; rua=mailto:[email protected]
❌ p=none provides no protection
Fix: Change to p=quarantine (after fixing DKIM above)
CAA:
❌ No CAA records — any CA can issue certificates for your domain
Fix
Установить dns-record-analyzer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл dns-record-analyzer?
Audits and troubleshoots DNS records for domains including A, AAAA, CNAME, MX, TXT, SPF, DKIM, DMARC, CAA, and NS records. Use when someone needs to verify DNS configuration, debug DNS propagation issues, check email authentication records, or audit domain security. Trigger words: DNS records, dig, nslookup, SPF, DKIM, DMARC, MX records, DNS propagation, nameservers, CAA, domain configuration.
Как установить скилл dns-record-analyzer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dns-record-analyzer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic