dnsdist
БесплатноБез исполняемых скриптовНе проверенDNS load balancer with DoS protection, multi-protocol support (DoH, DoT, DoQ), and dynamic traffic management
Об этом скилле
dnsdist
High-performance DNS load balancer from PowerDNS that distributes queries across backend servers while providing DoS protection, caching, and support for encrypted DNS protocols (DoH, DoT, DoQ, DNSCrypt).
Overview
dnsdist is a DNS-aware, DoS-aware load balancer that receives DNS queries and intelligently routes them to backend servers based on configurable policies. It operates at the DNS protocol level, enabling sophisticated traffic management, abuse prevention, and protocol translation.
Key Capabilities
- Load Balancing: Distribute queries across multiple DNS backends
- DoS Protection: Dynamic blocking, rate limiting, eBPF filtering
- Multi-Protocol: Do53, DNS-over-TLS, DNS-over-HTTPS, DNS-over-QUIC, DNSCrypt
- Response Caching: Built-in packet cache with stale serving
- Dynamic Configuration: Runtime changes via Lua console
- Monitoring: Prometheus metrics, REST API, Carbon export
Installation
Package Managers
Debian/Ubuntu:
apt-get install -y dnsdist
RHEL/CentOS:
yum install -y epel-release
yum install -y dnsdist
FreeBSD:
pkg install dns/dnsdist
From Source
# Dependencies: C++17 compiler, Boost, Lua 5.1+, libedit
# From tarball
wget https://downloads.powerdns.com/releases/dnsdist-X.Y.Z.tar.bz2
tar xf dnsdist-X.Y.Z.tar.bz2
cd dnsdist-X.Y.Z
./configure
make
sudo make install
# From Git
git clone https://github.com/PowerDNS/pdns.git
cd pdns/pdns/dnsdistdist
autoreconf -i
./configure
make
Verify Installation
dnsdist --version
# Check for: dns-over-tls(DOT) dns-over-https(DOH) dnscrypt
Quick Start
Basic Command Line
# Listen on port 5300, forward to Quad9 servers
dnsdist -l 127.0.0.1:5300 9.9.9.9 2620:fe::fe 2620:fe::9
Minimal Configuration
Create dnsdist.conf:
-- Listen on standard DNS port
setLocal("0.0.0.0:53")
-- Add backend servers
newServer({address="9.9.9.9", name="quad9-primary"})
newServer({address="1.1.1.1", name="cloudflare"})
-- Set load balancing policy
setServerPolicy(firstAvailable)
-- Access control (default: RFC1918 ranges)
setACL({"0.0.0.0/0", "::/0"}) -- Allow all (be careful!)
Run with configuration:
dnsdist -C dnsdist.conf
Backend Server Configuration
Adding Servers
-- Basic server
newServer("192.168.1.10")
-- Server with options
newServer({
address = "192.168.1.10:53",
name = "dns-primary",
qps = 100, -- Max queries per second
order = 1, -- Selection order
weight = 100, -- Load balancing weight
retries = 2, -- Retry attempts
tcpConnectTimeout = 5, -- TCP connect timeout (seconds)
tcpSendTimeout = 30, -- TCP send timeout
tcpRecvTimeout = 30, -- TCP receive timeout
checkInterval = 1, -- Health check interval
checkTimeout = 1000, -- Health check timeout (ms)
maxCheckFailures = 3, -- Failures before marking down
mustResolve = true, -- Must resolve check name
checkName = "health.example.com",
rise = 2, -- Successes before marking up
useClientSubnet = true, -- Forward EDNS Client Subnet
pool = "primary" -- Assign to pool
})
-- Server with DNS-over-TLS backend
newServer({
address = "1.1.1.1:853",
tls = "openssl", -- or "gnutls"
subjectName = "cloudflare-dns.com",
validateCertificates = true
})
-- Server with DNS-over-HTTPS backend
newServer({
address = "1.1.1.1:443",
tls = "openssl",
dohPath = "/dns-query",
subjectName = "cloudflare-dns.com"
})
Server Pools
-- Create pools for different purposes
newServer({address="192.168.1.10", pool="recursive"})
newServer({address="192.168.1.11", pool="recursive"})
newServer({address="10.0.0.50", pool="authoritative"})
-- Route queries to specific pools
addAction(QNameSuffixRule("internal.example.com"), PoolAction("authoritative"))
addAction(AllRule(), PoolAction("recursive"))
Server Management
-- Console commands
showServers() -- Display all servers
getServer(0):setUp() -- Force server up
getServer(0):setDown() -- Force server down
getServer(0):setQPS(50) -- Change QPS limit
getServer(0):addPool("backup") -- Add to pool
rmServer(0) -- Remove server
Load Balancing Policies
Built-in Policies
-- First available (default)
setServerPolicy(firstAvailable)
-- Round robin
setServerPolicy(roundrobin)
-- Least outstanding queries
setServerPolicy(leastOutstanding)
-- Weighted random
setServerPolicy(wrandom)
-- Weighted round robin
setServerPolicy(whashed)
-- Random
setServerPolicy(random)
-- Consistent hashing (sticky by client IP)
setServerPolicy(chashed)
Custom Policy
-- Custom Lua policy function
function myPolicy(servers, dq)
-- Route .internal queries to first serv
Установить dnsdist в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл dnsdist?
DNS load balancer with DoS protection, multi-protocol support (DoH, DoT, DoQ), and dynamic traffic management
Как установить скилл dnsdist?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dnsdist запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic