Blocky
ActiveOverview
Blocky is a DNS proxy and ad-blocker for the local network, written in Go. It blocks DNS queries using external lists for ads and malware, supports client-specific allow/denylists, and provides network-wide ad blocking similar to Pi-hole without collecting user data or telemetry.18
Key Features
- DNS Query Blocking - Blocks DNS queries matching external ad-block and malware lists with allowlisting support.
- Client Grouping - Defines allow/denylists per client group such as kids or smart home devices.
- CNAME Inspection - Blocks request domains, response CNAMEs, and response IP addresses.
- Encrypted DNS - Supports encrypted upstream resolvers like DoH and DoT.
- REST API - Provides API for control and metrics including Prometheus export.
- CLI Interface - Command-line tool to control Blocky via the REST API.
- DNS Caching - Includes caching with prefetching for performance.
Pricing
| Plan | Price | Includes |
|---|---|---|
| Community | Free | Full open-source features, no paid tiers. |
Platforms & Requirements
Blocky runs as a standalone Go binary or Docker container on Linux, macOS, and Windows servers. It requires minimal resources and is commonly deployed on VPS, homelabs, or routers via DHCP. No client-side apps; works network-wide by setting as DNS server.126
Integrations & Ecosystem
- External blocklists (ads, malware)
- Upstream DNS resolvers (DoH, DoT)
- Prometheus metrics
- REST API
- CLI control
- DHCP integration via routers
- Tailscale subnet routing
Alternatives
| App | Difference |
|---|---|
| Pi-hole | Pi-hole includes web UI and DHCP server; Blocky focuses solely on DNS proxy without database or UI. |
| AdGuard Home | AdGuard Home offers built-in UI and more resolver options; Blocky is lighter with Go binary and CLI focus. |
Reputation
Blocky is regarded as a lightweight, privacy-focused alternative to Pi-hole for network-wide ad blocking, praised for no telemetry and easy deployment in homelabs.147 Users highlight its reliability in high-availability setups and performance via caching.25 Lacks a web UI, requiring CLI or API for management, which suits technical users but may deter beginners.7
Sources (9)
- https://github.com/0xERR0R/blocky
- https://mattdyson.org/blog/2024/12/highly-available-dns-adblocking-with-blocky/
- https://www.youtube.com/watch?v=Uq6mafo9fEc
- https://wiki.nixos.org/wiki/Blocky
- https://blog.kevingomez.fr/2025/08/28/highly-available-dns-ad-blocking-with-blocky/
- https://www.ramnode.com/guides/blocky
- https://riesinger.dev/posts/ha-dns-adblocking-with-blocky/
- https://0xerr0r.github.io/blocky/
- https://0xerr0r.github.io/blocky/latest/interfaces/