Blocky

Open source

Blocky is a DNS proxy and ad-blocker for the local network, written in Go, with per-client-group rules, caching and modern DNS protocols.

Open-source alternative to

0xerr0r.github.io
Blocky homepage screenshot
GitHub stars
7.1k
Last 30 days
+81(+1%)
Last commit
3 days ago
Repository age
7 years
Version
v0.36.0
Licence
Apache-2.0
Self-hosted
Yes

About Blocky

Blocky is a DNS proxy and ad-blocker for the local network written in Go. It blocks DNS queries using external lists covering ads and malware, with allowlisting, regex support and periodic reloads of the lists. Blocking can cover the requested domain, response CNAMEs and response IP addresses, and lists can be assigned per client group such as kids or smart home devices.

It is more than a blocker. Custom DNS resolution for chosen domains and conditional forwarding to external DNS servers are available, and upstream resolvers can differ per client group. Answers are cached, often used queries are prefetched, and several external resolvers can be used at once. Supported transports are UDP, TCP, DoH, DoT, DoQ and DoH3, and it can provide a DoH endpoint.

Blocky is a stateless single binary with no database or temporary files, configured in YAML, with a multi-arch Docker image and a community Helm chart. It runs on x86-64, ARM and MIPS, including Raspberry Pi and OpenWrt routers. Prometheus metrics, Grafana dashboards, a REST API, a CLI tool and query logging to CSV or a database are included. The project says it collects no telemetry.

Key features

  • Blocks ad and malware domains with allow and deny lists
  • Different lists per client group
  • Conditional forwarding and custom resolution
  • Caching and prefetching of DNS answers
  • DoH, DoT and DoQ support
  • Prometheus metrics and Grafana dashboards
  • Query logging to CSV or databases

Good fit for

  • Network-wide ad blocking
  • Per-device DNS filtering such as for kids
  • Running a private DoH endpoint
Built with
Go tools
Tags
dns
ad-blocker
self-hosted
privacy
go
homelab
doh
parental-control

Blocky: questions and answers

What is Blocky used for?
Blocky is a DNS proxy and ad-blocker for the local network, written in Go, with per-client-group rules, caching and modern DNS protocols. It is a good fit for network-wide ad blocking, per-device DNS filtering such as for kids and running a private DoH endpoint.
Is Blocky open source?
Yes. Blocky is open source under the Apache-2.0 licence. Its source code is on GitHub at 0xERR0R/blocky and is written mainly in Go.
Is Blocky free?
Yes. Blocky is open source, so the software itself is free to use.
Can I self-host Blocky?
Yes. Blocky can be self-hosted on your own server or infrastructure.
What is Blocky an alternative to?
Blocky is an open-source alternative to Cisco Umbrella, NextDNS and Control D. Other open-source alternatives to Cisco Umbrella include Pi-hole, AdGuard Home and Technitium DNS Server.
Is Blocky actively maintained?
Yes. The most recent commit to Blocky was on 10 November 2026, and the latest release is v0.36.0, published on 9 November 2026. The project has 7.1k stars on GitHub, with 81 added in the last 30 days.

Open-source alternatives to Blocky

See all

SaaS alternatives to Blocky

See all