
Blocky
Fast, lightweight DNS proxy and ad-blocker in Go
6.9k stars 298 forks last commit first released Apache-2.0
Actively maintained
Last commit 24 Aug 2026.

Blocky is an open-source DNS proxy and ad-blocker designed for local networks. It intercepts and filters DNS queries using external blocklists and per-client rules while offering modern DNS protocol support and metrics for observability.
Key Features
- DNS blocking using external allow/deny lists (ad, malware) with periodic reloads and regex support
- Per-client-group allow/deny lists and upstream resolver configuration (e.g., groups for kids or IoT devices)
- Deep CNAME inspection and response-IP blocking against IP lists
- Supports DNS over UDP/TCP, DNS-over-HTTPS (DoH) and DNS-over-TLS (DoT); DNSSEC validation supported
- Configurable caching, prefetching and multi-upstream resolution for improved performance and low memory footprint
- Stateless single-binary architecture with multi-architecture Docker images and community Helm chart for Kubernetes
- Prometheus metrics exposure and prepared Grafana dashboards; logging to CSV or SQL backends (MySQL/MariaDB/PostgreSQL/Timescale)
- REST API endpoints and CLI tooling for operational tasks
Use Cases
- Network-wide ad and tracker blocking for home or small office networks with per-device rules
- Parental control and device grouping to apply different filtering policies (e.g., kids vs. smart devices)
- Deploy as a lightweight cluster or edge DNS resolver (Docker or Kubernetes) with observability via Prometheus/Grafana
Limitations and Considerations
- No official built-in web administration UI; management is primarily via YAML configuration, CLI and REST API, and third-party UIs exist separately
- Stateless design means dynamic persistent storage of runtime changes (e.g., centrally editable blocklists) requires external tooling or orchestration to synchronize across instances
Blocky focuses on simplicity, performance and transparency for DNS filtering and observability. It is designed to be integrated into existing tooling and monitoring stacks for operational management.
Categories:
Tags:
Tech Stack:
Similar to Blocky

GoAway
Lightweight DNS sinkhole with a web admin dashboard
Self-hosted DNS sinkhole written in Go that blocks ads, trackers and malicious domains; provides a modern web dashboard, Docker support, DoT/DoH options and realtime stats.


AdGuard Home
Network-wide DNS server that blocks ads, trackers, phishing and malware
Open-source DNS-based ad & tracker blocking server for networks. Offers per-device rules, parental controls, encrypted upstream DNS (DoH/DoT/DNSCrypt), web UI and API.


Gravity
Replicated DNS, DHCP & TFTP server with ad-blocking
Fully-replicated DNS, DHCP and TFTP server with ad‑blocking, web UI, API, Prometheus metrics and multi-site replication for small to medium networks.


Technitium DNS Server
Authoritative and recursive DNS server with web console
Cross-platform DNS server with authoritative/recursive modes, encrypted DNS (DoH/DoT/DoQ), DNSSEC, ad/malware blocking, DHCP, and an HTTP API with web admin UI.

Unbound
Validating, recursive, caching DNS resolver
Standards-based validating recursive DNS resolver with DNSSEC validation, DNS-over-TLS/HTTPS support and configurable caching for privacy and performance.

Pi-hole
Network-wide DNS sinkhole for ad and tracker blocking
Pi-hole is a network-wide DNS sinkhole that blocks ads and trackers for all devices on your network, with a web dashboard, query logs, and optional DHCP server.



