AGENT SKILL

implementing-zero-trust-dns-with-nextdns

Configure NextDNS as an encrypted (DoH/DoT) zero trust DNS resolver that blocks malicious, phishing, and cryptojacking domains via real-time threat intelligence, detects DNS rebinding and CNAME cloaking, and enforces organizational DNS policy across endpoints. Use when deploying DNS-layer threat blocking and acceptable-use enforcement, or when extending zero trust controls (including Windows 11 Zero Trust DNS) to the DNS resolution path.

License 许可
Apache-2.0
最近更新
2026-08-25
Stars
★ 0
Forks
0

01 前言 Front Matter

name
implementing-zero-trust-dns-with-nextdns
tags
[ "zero-trust", "dns", "nextdns", "dns-over-https", "dns-over-tls", "threat-blocking", "dns-filtering", "privacy", "encrypted-dns" ]
author
mahipal
domain
cybersecurity
license
Apache-2.0
version
1.0
nist_csf
[ "PR.AA-01", "PR.AA-05", "PR.IR-01", "GV.PO-01" ]
subdomain
zero-trust-architecture
description
Configure NextDNS as an encrypted (DoH/DoT) zero trust DNS resolver that blocks malicious, phishing, and cryptojacking domains via real-time threat intelligence, detects DNS rebinding and CNAME cloaking, and enforces organizational DNS policy across endpoints. Use when deploying DNS-layer threat blocking and acceptable-use enforcement, or when extending zero trust controls (including Windows 11 Zero Trust DNS) to the DNS resolution path.
mitre_attack
[ "T1078", "T1190", "T1059", "T1573", "T1486" ]

02 资源文件 7

03 SKILL.md 正文

Implementing Zero Trust DNS with NextDNS

Overview

NextDNS is a cloud-based DNS resolver that provides encrypted DNS resolution (DNS-over-HTTPS and DNS-over-TLS), real-time threat intelligence blocking, ad and tracker filtering, and granular DNS policy enforcement. In a zero trust architecture, DNS is a critical control point -- every network connection begins with a DNS query, making DNS filtering an effective layer for blocking malicious domains, preventing data exfiltration via DNS tunneling, enforcing acceptable use policies, and gaining visibility into all network communications. NextDNS processes queries using threat intelligence feeds containing millions of malicious domains updated in real-time, blocks cryptojacking and phishing domains, detects DNS rebinding attacks, and supports CNAME cloaking protection. For enterprise environments, Microsoft's Zero Trust DNS (ZTDNS) feature on Windows 11 extends this concept by enforcing that endpoints can only resolve domains through approved protected DNS servers.

When to Use

  • When deploying or configuring implementing zero trust dns with nextdns capabilities in your environment
  • When establishing security controls aligned to compliance requirements
  • When building or improving security architecture for this domain
  • When conducting security assessments that require this implementation

Prerequisites

  • NextDNS account (free tier: 300,000 queries/month; Pro: unlimited)
  • Network devices supporting DoH or DoT configuration
  • Administrative access to endpoint DNS settings
  • Understanding of DNS protocol and resolution chain
  • Familiarity with organizational acceptable use policies

Architecture

    Endpoint Device
         |
    DNS Query (Encrypted)
         |
    +----+----+
    |  DoH/DoT |  (DNS-over-HTTPS or DNS-over-TLS)
    |  Tunnel  |
    +----+----+
         |
    +----+----+
    | NextDNS  |
    | Resolver |
    +----+----+
         |
    +----+----+------+--------+
    |         |       |        |
  Threat   Ad/Tracker Privacy  Parental
  Intel    Blocklists Controls Controls
  Check    Check      Check    Check
    |         |       |        |
    +----+----+------+--------+
         |
    ALLOW or BLOCK
         |
    Response to Endpoint

Configuration Setup

NextDNS Profile Configuration

Dashboard: https://my.nextdns.io

Configuration ID: abc123 (unique per profile)

Endpoints:
  DNS-over-HTTPS: https://dns.nextdns.io/abc123
  DNS-over-TLS:   abc123.dns.nextdns.io
  DNS-over-QUIC:  quic://abc123.dns.nextdns.io
  IPv4:           45.90.28.x, 45.90.30.x (linked to config)
  IPv6:           2a07:a8c0::xx, 2a07:a8c1::xx

Security Settings

Security Tab Configuration:
  [x] Threat Intelligence Feeds - Block domains from curated threat feeds
  [x] AI-Driven Threat Detection - Machine learning-based detection
  [x] Google Safe Browsing - Cross-reference with Google's threat database
  [x] Cryptojacking Protection - Block crypto mining domains
  [x] DNS Rebinding Protection - Prevent DNS rebinding attacks
  [x] IDN Homograph Attacks - Block internationalized domain name attacks
  [x] Typosquatting Protection - Block common typosquatting domains
  [x] DGA Protection - Block domain generation algorithm domains
  [x] NRD (Newly Registered Domains) - Block domains < 30 days old
  [x] DDNS (Dynamic DNS) - Block dynamic DNS services
  [x] Parked Domains - Block parked/unused domains
  [x] CSAM - Block child sexual abuse material domains

Privacy Settings

Privacy Tab Configuration:
  Blocklists:
    [x] NextDNS Ads & Trackers Blocklist
    [x] OISD (Full)
    [x] EasyPrivacy
    [x] AdGuard DNS Filter

  Native Tracking Protection:
    [x] Block Windows telemetry
    [x] Block Apple telemetry
    [x] Block Samsung telemetry
    [x] Block Xiaomi telemetry
    [x] Block Huawei telemetry
    [x] Block Roku telemetry
    [x] Block Sonos telemetry

  [x] Block Disguised Third-Party Trackers (CNAME cloaking)
  [x] Allow Affiliate & Tracking Links (optional, for business)

Allowlist and Denylist

Allowlist (domains that bypass all blocking):
  - login.microsoftonline.com
  - graph.microsoft.com
  - *.company.com

Denylist (always blocked regardless of other settings):
  - known-malicious-domain.com
  - unauthorized-cloud-storage.com
  - personal-email-provider.com  (if policy requires)

Endpoint Deployment

Linux (systemd-resolved)

# Configure DNS-over-TLS with systemd-resolved
sudo tee /etc/systemd/resolved.conf << 'EOF'
[Resolve]
DNS=45.90.28.x#abc123.dns.nextdns.io
DNS=45.90.30.x#abc123.dns.nextdns.io
DNS=2a07:a8c0::xx#abc123.dns.nextdns.io
DNS=2a07:a8c1::xx#abc123.dns.nextdns.io
DNSOverTLS=yes
Domains=~.
EOF

sudo systemctl restart systemd-resolved

# Verify
resolvectl status
resolvectl query example.com

Linux (NextDNS CLI)

# Install NextDNS CLI
sh -c 'sh -e $(curl -sL https://nextdns.io/install)'

# Configure with your profile
sudo nextdns install \
  -config abc123 \
  -report-client-info \
  -auto-activate

# Verify
nextdns status
nextdns log

macOS

# Install via Homebrew
brew install nextdns/tap/nextdns

# Configure
sudo nextdns install \
  -config abc123 \
  -report-client-info

# Or configure via System Settings > Network > DNS
# Add DNS-over-HTTPS: https://dns.nextdns.io/abc123

Windows

# Install NextDNS CLI for Windows
# Download from: https://nextdns.io/download/windows

# Or configure DoH natively (Windows 11)
# Settings > Network & Internet > Ethernet/Wi-Fi > DNS
# Preferred DNS: 45.90.28.x
# DNS over HTTPS: On (Manual template)
# DoH Template: https://dns.nextdns.io/abc123

# PowerShell: Configure DoH
Set-DnsClientDohServerAddress -ServerAddress "45.90.28.x" `
  -DohTemplate "https://dns.nextdns.io/abc123" `
  -AllowFallbackToUdp $false `
  -AutoUpgrade $true

Router-Level Configuration

# Most routers support custom DNS servers
# For DoH/DoT-capable routers (pfSense, OPNsense, OpenWrt):

# pfSense DNS Resolver (Unbound):
# Services > DNS Resolver > Custom Options:
server:
  forward-zone:
    name: "."
    forward-tls-upstream: yes
    forward-addr: 45.90.28.x@853#abc123.dns.nextdns.io
    forward-addr: 45.90.30.x@853#abc123.dns.nextdns.io

# OpenWrt (using https-dns-proxy):
opkg update && opkg install https-dns-proxy
uci set https-dns-proxy.default.resolver_url='https://dns.nextdns.io/abc123'
uci commit https-dns-proxy
/etc/init.d/https-dns-proxy restart

Mobile Devices

iOS:
  Install NextDNS app from App Store
  Or: Settings > General > VPN & Device Management
  Install NextDNS configuration profile

Android:
  Settings > Network > Private DNS
  DNS Provider: abc123.dns.nextdns.io

  Or: Install NextDNS app from Play Store

Microsoft Zero Trust DNS (Windows 11)

For enterprise Windows environments, Microsoft's ZTDNS enforces that endpoints can only communicate with domains resolved through approved DNS servers.

# Enable ZTDNS (Windows 11 23H2+)
# Requires Windows Defender Firewall in enforcing mode

# Configure Protected DNS Servers via Group Policy:
# Computer Configuration > Administrative Templates > Network > DNS Client
# > Configure DNS over HTTPS (DoH) name resolution
# > Protected DNS servers: https://dns.nextdns.io/abc123

# Windows Firewall blocks all traffic to domains not resolved
# through the protected DNS server

Monitoring and Analytics

Log Analysis

NextDNS Analytics Dashboard provides:
  - Total queries over time
  - Blocked queries by category
  - Top domains (allowed and blocked)
  - Top blocked reasons (threat, ad, tracker)
  - Device-level breakdown
  - Geographic query distribution

Log Settings:
  Retention: 1 hour / 6 hours / 1 day / 1 week / 1 month / 3 months / 1 year / 2 years
  Storage Location: US / EU / UK / Switzerland
  Logging: [ ] Enable / [ ] Disable

API Integration

# NextDNS API for automated monitoring
# Get analytics data
curl -H "X-Api-Key: your-api-key" \
  "https://api.nextdns.io/profiles/abc123/analytics/domains?from=-24h"

# Get blocked domains
curl -H "X-Api-Key: your-api-key" \
  "https://api.nextdns.io/profiles/abc123/analytics/domains?from=-24h&status=blocked"

# Export logs for SIEM integration
curl -H "X-Api-Key: your-api-key" \
  "https://api.nextdns.io/profiles/abc123/logs?from=-1h" \
  | jq '.data[] | select(.status == "blocked")'

Zero Trust DNS Policy Framework

Policy Tiers

Tier 1 - Security (Mandatory for all):
  - Threat intelligence blocking
  - Cryptojacking protection
  - DNS rebinding protection
  - DGA detection
  - NRD blocking (< 30 days)

Tier 2 - Privacy (Recommended):
  - Tracker blocking
  - Native telemetry blocking
  - CNAME cloaking protection

Tier 3 - Compliance (Organization-specific):
  - Category-based blocking
  - Custom allowlists/denylists
  - Time-based access policies
  - Log retention per regulatory requirements

Security Best Practices

  1. Enforce encrypted DNS: Block plaintext DNS (port 53 UDP/TCP) at the firewall
  2. Use NextDNS CLI on endpoints: Ensures per-device identification and logging
  3. Enable NRD blocking: Newly registered domains are overwhelmingly malicious
  4. Block DNS-over-HTTPS bypass: Ensure browsers use system DNS, not built-in DoH
  5. Review blocklists quarterly: Remove false positives, add organizational blocks
  6. Enable CNAME cloaking protection: Prevents tracker evasion via CNAME records
  7. Set appropriate log retention: Balance privacy with forensic needs (90 days recommended)
  8. Monitor for DNS tunneling: Watch for unusual query patterns and high entropy domains
  9. Deploy at router level: Catches all devices including IoT and unmanaged endpoints
  10. Combine with endpoint DNS: Defense in depth with both router and per-device filtering

References

04 同仓库更多 Skills

vikasvardhanv
vikasvardhanv/jerry_skills

syllabus

Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.

★ 0
vikasvardhanv
vikasvardhanv/jerry_skills

pulse

Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X/Twitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend/sentiment/problems/opportunities/comparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.

★ 0
vikasvardhanv
vikasvardhanv/jerry_skills

patent

Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search / freedom-to-operate / competitive landscape / acquisition diligence / litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.

★ 0
vikasvardhanv
vikasvardhanv/jerry_skills

notebooklm

Browser automation skill for controlling Google's NotebookLM. Use when the user wants anything done in NotebookLM (e.g., 'open NotebookLM', 'check my [name] notebook', 'ask my notebook about X', 'add [source] to NotebookLM', 'generate a Video Overview from my notebook', 'use NotebookLM Studio'). Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio/Video Overviews, Mind Maps, Reports incl. Briefing Doc/Study Guide/FAQ, Flashcards, Quiz, slide decks, infographics — discover the exact set from the live Studio panel; the UI evolves fast), and creating new notebooks. Requires browser automation environment — fails gracefully when unavailable.

★ 0
vikasvardhanv
vikasvardhanv/jerry_skills

litreview

Academic literature orientation skill that searches papers via free keyless APIs (PubMed E-utilities + OpenAlex) by default — with the Consensus MCP as an optional enhancement lane when connected — builds a strategic search plan using PICO (default) or SPIDER / Decomposition / hybrid as fallbacks, and synthesizes findings into a formatted Word (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5/10/20 queries) controls coverage vs. speed. Output is a 'launching pad' — an orientation guide that lets a researcher dive in confidently, not a finished review. Use when the user starts literature-oriented research (e.g., 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'). Do NOT use for single one-off paper searches wanting a quick list — that's a plain PubMed/OpenAlex (or Consensus) query.

★ 0
vikasvardhanv
vikasvardhanv/jerry_skills

grants

NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance/Innovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget/scope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.

★ 0