Blocky

Active

Overview

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

PlanPriceIncludes
CommunityFreeFull 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

AppDifference
Pi-holePi-hole includes web UI and DHCP server; Blocky focuses solely on DNS proxy without database or UI.
AdGuard HomeAdGuard 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)
  1. https://github.com/0xERR0R/blocky
  2. https://mattdyson.org/blog/2024/12/highly-available-dns-adblocking-with-blocky/
  3. https://www.youtube.com/watch?v=Uq6mafo9fEc
  4. https://wiki.nixos.org/wiki/Blocky
  5. https://blog.kevingomez.fr/2025/08/28/highly-available-dns-ad-blocking-with-blocky/
  6. https://www.ramnode.com/guides/blocky
  7. https://riesinger.dev/posts/ha-dns-adblocking-with-blocky/
  8. https://0xerr0r.github.io/blocky/
  9. https://0xerr0r.github.io/blocky/latest/interfaces/