Blocky logo

Blocky

Website

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 screenshot

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:

Share:

Similar to Blocky

GoAway logo

GoAway

Lightweight DNS sinkhole with a web admin dashboard

732
35
Last commit

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.

MITActively maintained
Alternative to:
AdGuard logo
AdGuard
+5
AdGuard Home logo

AdGuard Home

Network-wide DNS server that blocks ads, trackers, phishing and malware

36.4k
2.5k
Last commit

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.

GPL-3.0Actively maintained
Alternative to:
AdGuard logo
AdGuard
+5
Gravity logo

Gravity

Replicated DNS, DHCP & TFTP server with ad-blocking

927
30
Last commit

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

GPL-3.0Actively maintained
Alternative to:
Cisco OpenDNS (Umbrella) logo
Cisco OpenDNS (Umbrella)
+10
Technitium DNS Server logo

Technitium DNS Server

Authoritative and recursive DNS server with web console

9.7k
773
Last commit

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.

GPL-3.0Actively maintained
Alternative to:
Cloudflare DNS logo
Cloudflare DNS
+10
Unbound logo

Unbound

Validating, recursive, caching DNS resolver

4.8k
448
Last commit

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

BSD-3-ClauseActively maintained
Alternative to:
Cloudflare DNS logo
Cloudflare DNS
+9
Pi-hole logo

Pi-hole

Network-wide DNS sinkhole for ad and tracker blocking

60.6k
3.3k
Last commit

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.

Actively maintained
Alternative to:
AdGuard logo
AdGuard
+7