Dns Intelligence

io.github.GuardBee由 GitHub 帳號 GuardBee 發布v0.10.1更新於 Nov 3, 2026

DNS record enumeration, misconfiguration and dangling-subdomain detection

概覽

AI 產生的概覽

本機 MCP 伺服器,可列舉 DNS 記錄、為郵件/DNSSEC/CAA 設定問題評分,並找出可能被接管的子網域。

可以做什麼
  • 列舉並查詢網域的各種 DNS 記錄,給出 A–F 評等與設定問題清單
  • 一次稽核多個網域,比較各自評等與最嚴重的發現
  • 檢查郵件安全:SPF、DMARC、DKIM 金鑰強度、MX、MTA-STS 與 TLS-RPT,並提供修正建議
  • 從憑證透明度日誌與常見名稱清單找出子網域,並過濾泛解析結果
  • 檢查指定主機名稱是否因懸空 CNAME 而有子網域接管風險
適用情境
適合讓助理在對話中檢視網域的 DNS 與郵件驗證設定、比較多個品牌或國家網域,或批次排查可能被劫持的懸空子網域。
執行需求
透過 npx 從 npm 套件 @guardbee/mcp-dns-intelligence 以本機 stdio 程序執行,需要 Node.js。未宣告帳號、API 金鑰或環境變數。需要對外 DNS 與 HTTPS 連線,包括向 dns.google、crt.sh 與 Cert Spotter 查詢。
安裝前請注意
會存取第三方服務:子網域探索會把網域名稱送給 crt.sh 與 Cert Spotter,DNSSEC 檢查經 DNS-over-HTTPS 走 dns.google。HTTP 探測會對每個存活的子網域送出一次 GET 請求。名稱伺服器探測會向該區的名稱伺服器送出 AXFR 請求與遞迴查詢。遙測預設關閉,但設定 GUARDBEE_TELEMETRY=1 會把工具名稱、成功與否、耗時及較短的參數值送給提供者。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Dns Intelligence,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@guardbee/mcp-dns-intelligence

🇬🇧 English | 🇹🇷 Türkçe | 🇨🇳 中文 | 🇯🇵 日本語 | 🇰🇷 한국어 | 🇧🇷 Português | 🇪🇸 Español | 🇩🇪 Deutsch

[npm version] [npm downloads] [License: MIT]

An MCP server that enumerates DNS records, detects SPF / DMARC / DKIM misconfigurations, and finds subdomains (Certificate Transparency + wordlist) that can be taken over. Uses Node.js's built-in dns/promises — no external dependencies.

Telemetry is off by default. With GUARDBEE_TELEMETRY=1 it sends the server, tool, success, duration and short parameter values such as a file path; longer strings and fields like content, token or password are replaced with a placeholder. See @guardbee/mcp-telemetry.


Features

  • Full DNS Enumeration — A, AAAA, MX, NS, TXT, CNAME, SOA records
  • SPF Analysis — +all, ?all, duplicate records, and the RFC 7208 limits counted the way receivers do: DNS lookups across nested include/redirect (max 10), void lookups (max 2), include loops and missing includes
  • DMARC Analysis — policy (none/quarantine/reject), pct, missing rua address
  • DKIM Check — probes 9 common selectors (default, google, selector1, mail, etc.)
  • Subdomain Discovery — names from Certificate Transparency logs (crt.sh and Cert Spotter, queried in parallel; only the domain name is sent) plus a 75-name wordlist, with wildcard DNS filtered out; every live name is checked for subdomain takeover
  • Email Security Summary — combined SPF + DMARC + DKIM analysis with copy-pasteable fix recommendations
  • 23 Unit Tests — pure logic tests, no network connection required

Quick Start

bash
npm install -g @guardbee/mcp-dns-intelligence

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "guardbee-dns-intelligence": {      "command": "npx",      "args": ["-y", "@guardbee/mcp-dns-intelligence"]    }  }}

MCP Tools

ToolDescription
enumerate_dnsFull DNS check with an A–F grade: records, SPF/DMARC/DKIM, MTA-STS, DNSSEC, CAA, nameservers
audit_domainsAudits up to 20 domains and compares their grades and top findings
enumerate_subdomainsProbes common subdomains (wildcard-aware); detects subdomain takeovers
check_takeoverChecks given hostnames for subdomain takeover
check_email_securityCombined SPF + DMARC + DKIM audit with fix recommendations
lookup_dnsTargeted DNS lookup for a specific record type (A/MX/TXT/etc.)

Example Usage

You can ask Claude:

"Is there a problem with example.com's DNS configuration?"

"Audit example.com's email security — SPF, DMARC, and DKIM"

"List example.com's subdomains, flag any dangling ones"

"What are example.com's MX records?"

Example Output

Email Security Check: example.com──────────────────────────────────────────────────
── SPF ─────────────────────────────────────────✓ v=spf1 include:_spf.google.com -all
── DMARC ───────────────────────────────────────✗ No DMARC record found at _dmarc.example.com  Add:  v=DMARC1; p=quarantine; rua=mailto:[email protected]
── DKIM ────────────────────────────────────────✓ Found DKIM selectors: google

SPF Findings

CodeSeverityDescription
SPF_MISSING🟡 MediumNo SPF record found
SPF_PERMISSIVE_ALL🔴 Critical+all — allows any server
SPF_NEUTRAL_ALL🟠 High?all — doesn't reject unauthorized senders
SPF_NO_ALL🟡 MediumNo all mechanism
SPF_TOO_MANY_LOOKUPS🟠 High> 10 DNS lookups — causes SPF to fail
SPF_DUPLICATE🟠 HighMultiple SPF records
SPF_AT_LOOKUP_LIMIT🔵 LowExactly 10 lookups — one more include breaks SPF
SPF_TOO_MANY_VOID_LOOKUPS🟠 HighMore than 2 includes return no record
SPF_INCLUDE_MISSING🟠 HighAn include/redirect target has no SPF record (permerror)
SPF_INCLUDE_DUPLICATE🟠 HighAn included domain publishes several SPF records
SPF_INCLUDE_LOOP🟠 HighIncludes loop back to a record being evaluated
SPF_PTR🔵 LowUses the deprecated ptr mechanism

DMARC Findings

CodeSeverityDescription
DMARC_MISSING🟠 HighNo DMARC record
DMARC_NO_POLICY🟠 HighMissing p= policy
DMARC_POLICY_NONE🟡 Mediump=none — monitoring mode, no enforcement
DMARC_PCT_LOW🔵 Lowpct < 100 — partial enforcement
DMARC_NO_RUA🔵 LowNo aggregate report address (rua)
DMARC_MULTIPLE🟠 HighSeveral DMARC records — receivers ignore all of them
DMARC_INVALID_POLICY🟠 Highp= is not none, quarantine or reject
DMARC_SUBDOMAINS_NONE🟡 Mediumsp=none leaves subdomains spoofable
DOMAIN_NOT_FOUND🟠 HighThe domain does not exist (NXDOMAIN)

Subdomains without their own DMARC record inherit the parent domain's (sp= policy), as receivers do. Subdomain enumeration detects wildcard DNS and leaves out names answered only by the wildcard.

DKIM, MX and Transport Findings

CodeSeverityDescription
DKIM_NOT_FOUND🟡 MediumNo DKIM key under ~35 common selectors (pass yours via dkimSelectors)
DKIM_KEY_WEAK🟠 HighRSA key under 1024 bits
DKIM_KEY_1024🟡 Medium1024-bit RSA key — rotate to 2048 (RFC 8301)
DKIM_KEY_INVALID🟡 MediumPublished key cannot be parsed
DKIM_TESTING🔵 Lowt=y test mode
MX_UNRESOLVABLE🟠 HighAn MX host has no A/AAAA record
MTA_STS_MISSING🔵 LowNo MTA-STS: inbound mail can be downgraded to plaintext
MTA_STS_MX_MISMATCH🟠 HighEnforce policy omits a live MX — compliant senders refuse to deliver
MTA_STS_POLICY_UNREACHABLE / _INVALID🟡 MediumPolicy file missing, redirected or malformed — senders ignore MTA-STS
MTA_STS_TESTING / _MODE_NONE / _MAX_AGE_SHORT🔵 LowNot enforcing, withdrawn, or max_age under a day
TLSRPT_MISSING / _INVALID🔵 LowNo usable TLS-RPT next to MTA-STS

SPF_MISSING is 🟠 High when the domain has MX records (with a starting record, e.g. v=spf1 include:_spf.google.com ~all for Google Workspace) and 🟡 Medium otherwise (suggests v=spf1 -all).

Nameserver Findings

Each nameserver of a zone is queried directly over DNS (UDP/TCP 53): an SOA query without recursion, an AXFR request (only the first messages are read — the zone is never downloaded), and a recursive query for a name it does not host. Skip with --no-ns-probe / nameserverProbe: false.

CodeSeverityDescription
NS_AXFR_ALLOWED🟠 HighAnyone can download the whole zone (zone transfer)
NS_LAME🟠 HighA listed nameserver does not answer authoritatively (REFUSED, SERVFAIL, no AA, or no answer)
NS_UNRESOLVABLE🟠 HighA nameserver's own name has no address
NS_OPEN_RESOLVER🟡 MediumThe nameserver answers recursive queries for anyone (amplification, cache poisoning)
NS_SOA_SERIAL_MISMATCH🔵 LowServers of the same primary return different serials (multi-provider setups are compared per primary)

DNSSEC and CAA Findings

CodeSeverityDescription
DNSSEC_BROKEN🔴 CriticalValidation fails — validating resolvers (Google, Cloudflare, most ISPs) cannot resolve the domain
DNSSEC_NO_DS🟡 MediumZone is signed but the parent has no DS, so nothing is validated
DNSSEC_WEAK_ALGORITHM🟡 MediumDeprecated signing algorithm (RSASHA1, RSAMD5, DSA, GOST; RFC 8624)
DNSSEC_DS_SHA1🔵 LowThe only DS digest is SHA-1
DNSSEC_DISABLED🔵 LowZone is not signed
CAA_BLOCKS_CURRENT_CA🟡 MediumCAA does not allow the CA that issued the live certificate — its renewal will fail
CAA_UNKNOWN_CRITICAL🟠 HighA critical CAA tag CAs do not understand — every CA must refuse
CAA_MISSING🔵 LowNo CAA anywhere up the tree: any CA may issue

DNSSEC is read through DNS-over-HTTPS (dns.google), comparing a validating query with a cd=1 (checking disabled) one, because Node's resolver cannot see DS/DNSKEY records or the AD flag. CAA follows RFC 8659 (nearest ancestor), and the issuer of the certificate served on :443 is compared against it. Both checks are skipped with http: false.

Subdomain Takeover Detection

Each live subdomain with a CNAME is checked, following the CNAME chain (up to 5 hops). The wildcard record is checked too: a dangling *.domain makes every unlisted name claimable.

RiskWhenProviders
⚠️ takeover possibleThe provider lets anyone claim the nameAWS S3 (NoSuchBucket page), Microsoft Azure and AWS Elastic Beanstalk (CNAME target NXDOMAIN), Surge.sh (project not found), and any CNAME into a domain that is not registered
⚠️ verify manuallyThe resource is gone, but the provider can require domain verificationGitHub Pages, Heroku, Netlify, Vercel, Ghost, Pantheon, WordPress.com, Help Scout, Tumblr, ngrok
🧹 staleThe target is gone but sits under a registered domain only its owner controls — delete the record; not a takeover, does not fail CIany other provider

Each page fingerprint was checked against a random unclaimed name on the provider. Providers whose "not found" page no longer carries a stable marker are not listed. HTTP checks send one GET / to the subdomain (HTTPS, then HTTP); turn them off with --no-http / httpProbe: false. Use check_takeover / takeover <host…> for hostnames you already know.


CLI — CI/CD Integration

In addition to MCP server mode, this can also be used directly as a CLI:

bash
# Full DNS + email security checknpx @guardbee/mcp-dns-intelligence check example.com
# Fail only on high and abovenpx @guardbee/mcp-dns-intelligence check example.com --fail-on=high
# Subdomain scan — exits 1 if a dangling CNAME is foundnpx @guardbee/mcp-dns-intelligence subdomains example.com
# Subdomain scan with higher concurrencynpx @guardbee/mcp-dns-intelligence subdomains example.com --concurrency=50
# JSON outputnpx @guardbee/mcp-dns-intelligence check example.com --format=json
# Several domains with an A–F grade each and a summary table (or every domain in guardbee.yml when none is given)npx @guardbee/mcp-dns-intelligence check example.com example.de example.co.uknpx @guardbee/mcp-dns-intelligence check --format=sarif > dns.sarif

Grades: each finding deducts points (critical 40, high 20, medium 8, low 2) and the worst finding caps the grade — any critical is F, any high at most C, any medium at most B.

Exit codes: 0 = no issues · 1 = findings above threshold / dangling subdomain · 2 = error

Configuration via guardbee.yml

Create a guardbee.yml at your project root to persist CLI flags. CLI flags always override file settings.

yaml
dns-intelligence:  fail-on: high          # critical | high | medium | low  concurrency: 20        # parallel subdomain probes  domains:               # used when no domain is given on the CLI    - example.com    - staging.example.com

See guardbee.example.yml for a sample file.

GitHub Actions — DNS Security Audit

yaml
name: DNS Security Checkon:  schedule:    - cron: "0 6 * * *"  # Every day at 06:00  workflow_dispatch:
jobs:  dns-check:    runs-on: ubuntu-latest    steps:      - name: Check DNS configuration        run: npx @guardbee/mcp-dns-intelligence check ${{ vars.DOMAIN }} --fail-on=high
      - name: Scan for dangling subdomains        run: npx @guardbee/mcp-dns-intelligence subdomains ${{ vars.DOMAIN }}

GitLab CI

yaml
dns-security:  image: node:20  script:    - npx @guardbee/mcp-dns-intelligence check $DOMAIN --fail-on=high    - npx @guardbee/mcp-dns-intelligence subdomains $DOMAIN  only:    - schedules

Pre-Deployment Email Security Check

yaml
- name: Verify email security records  run: |    npx @guardbee/mcp-dns-intelligence check ${{ vars.DOMAIN }} \      --fail-on=high \      --format=json | tee dns-report.json
- name: Upload DNS report  uses: actions/upload-artifact@v4  with:    name: dns-security-report    path: dns-report.json

Development

bash
npm installnpm test          # 23 unit testsnpm run build     # TypeScript compile

License

MIT — GuardBee

Feedback

Questions, ideas, or a false positive? Start a thread in GitHub Discussions or open an issue. If GuardBee is useful to you, a ⭐ on the repository helps others find it.

來源:packages/dns-intelligence/README.md,提交 bc5997d

工具

6

enumerate_dns

Enumerate all DNS records for a domain and detect misconfigurations: SPF, DMARC, DKIM key strength, MTA-STS/TLS-RPT, MX, DNSSEC (signed / broken / weak algorithms) and CAA (including whether it blocks the CA of the live certificate) and nameservers (lame delegation, anonymous zone transfer, open recursion)

輸入參數domain必填nameserverProbe

audit_domains

Audit several domains at once (e.g. every brand or country domain) and compare them: an A–F grade per domain from all DNS, email, DNSSEC, CAA and nameserver checks, plus each domain's most serious findings

輸入參數domains必填nameserverProbe

enumerate_subdomains

Find subdomains from Certificate Transparency logs and a common-name wordlist, and detect subdomain takeovers: CNAMEs to S3, GitHub Pages, Azure, Heroku, Netlify and other providers whose resource is gone (verified fingerprints), or to targets that no longer exist

輸入參數domain必填httpProbecertificateTransparency

check_takeover

Check specific hostnames (e.g. from your DNS zone or certificate logs) for subdomain takeover

輸入參數hosts必填httpProbe

check_email_security

Check a domain's email security: MX, SPF (nested lookup count), DMARC, DKIM key strength, MTA-STS and TLS-RPT, with remediation advice

輸入參數domain必填dkimSelectors

lookup_dns

Perform a targeted DNS lookup for specific record types on a domain

輸入參數type必填domain必填

版本歷史

6
  1. v0.10.1最新Oct 30, 2026
  2. v0.9.2Oct 22, 2026
  3. v0.8.0Oct 14, 2026
  4. v0.7.0Oct 14, 2026
  5. v0.3.0Oct 13, 2026
  6. v0.2.4Oct 13, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分