Skip to content

blocky

DNS proxy and ad blocker for home networks, with per-client rules and DoH support

Permissive (OSI) · Apache-2.0
  • Self-hosted
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

87

Health

Thriving

Overview

Stars

7,127

Last commit

today

Nov 2026

Repository age

7 years

since Nov 2019

Latest version

v0.37.0

Nov 2026

Contributors

–

20 active in 90 days

Releases

10

last 12 months

Language

Go

Blocky is a DNS proxy and ad blocker for your local network, written in Go. It blocks queries using external ad and malware lists, with allowlists, regex support and checks on CNAME and response IP addresses. You can assign different lists and upstream resolvers to client groups, such as kids or smart home devices.

It also does custom name resolution, conditional forwarding, caching and prefetching. It supports DNS over UDP, TCP, HTTPS, TLS, QUIC and HTTP/3, plus DNSSEC validation. It exports Prometheus metrics, ships Grafana dashboards and can log queries to CSV or to MySQL, MariaDB or PostgreSQL.

Blocky is a single stateless binary configured with YAML. A multi-arch Docker image exists, as does a community Helm chart. It runs on x86-64, ARM and MIPS, including Raspberry Pi and OpenWrt routers. It collects no telemetry.

It is licensed under Apache-2.0 and is a self-hosted alternative to Pi-hole style DNS filtering.

Who it's for

Homelab users replacing Pi-hole

It blocks ads network-wide from one binary or Docker container, configured in YAML.

Skip if: You want a web admin interface for managing lists.

Parents managing devices at home

Per-client-group lists let you filter kids' devices differently from others.

Skip if: You need per-user rules rather than per-device groups.

Admins running Kubernetes or Prometheus stacks

It has Prometheus metrics, Grafana dashboards and a Helm chart.

Skip if: You do not run any monitoring tools.

The problem it solves

Ads and trackers load on every device in your home or office, and you cannot install blockers on all of them. Blocky filters at the DNS level for the whole network and lets you set different rules per device group.

Strengths

  • Per-client-group allow and denylists and upstream resolvers
  • Supports DoH, DoT, DoQ and DoH3, with DNSSEC validation
  • Stateless single binary, runs on ARM, MIPS and x86-64
  • Prometheus metrics and Grafana dashboards included
  • Active with 19 contributors in the last 90 days and nine releases last year

Trade-offs

  • Configured through YAML files rather than a GUI
  • Query logging to a database needs a separate database server
  • Version is still pre-1.0 (v0.36.0)

Self-host blocky

Self-hostable
Yes

Frequently asked questions

Is Blocky free?

Yes. It is open source under the Apache-2.0 license.

Can I run it in Docker?

Yes. A multi-arch Docker image is available.

Does it collect telemetry?

No. It collects no user data or telemetry.

Does it run on a Raspberry Pi?

Yes. It supports ARM and MIPS and runs on Raspberry Pi and OpenWrt routers.

Similar tools in Tunnels, VPNs and networking

pgrok

Tunnels, VPNs and networking

Self-hosted SSH-based tunnel service with SSO and stable subdomains for teams

3.7k 134 yesterday Active MIT

rathole

Tunnels, VPNs and networking

Rust reverse proxy that exposes services behind NAT through a server with a public IP

14k 852 3 months ago Dormant Apache-2.0

Technitium DNS Server

Tunnels, VPNs and networking

Self-hosted authoritative and recursive DNS server with ad blocking and encrypted DNS

10k 832 yesterday Thriving GPL-3.0

wstunnel

Tunnels, VPNs and networking

Single Rust binary that tunnels TCP, UDP and SOCKS5 over WebSocket or HTTP/2

7.2k 589 35 days ago Active BSD-3-Clause

iodine

Tunnels, VPNs and networking

IPv4-over-DNS tunnel for getting online where only DNS queries get through

8k 604 yesterday Active ISC

external-dns

Tunnels, VPNs and networking

Kubernetes controller that syncs Services and Ingresses to DNS providers like Route 53

9.2k 3k today Thriving Apache-2.0