Blocky

Blocky

Fast, lightweight DNS proxy and ad-blocker in Go

6.1kstars
267forks
Last commit: 5d ago
Repo age: 7y old
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 Services

Pi-hole

Pi-hole

Network-wide DNS sinkhole for ad and tracker blocking

55.9k
3k
Last commit: 8d ago

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.

Alternative to:
AdGuard
AdGuard
+7
AdGuard Home

AdGuard Home

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

32.8k
2.3k
Last commit: 7h ago

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.

Alternative to:
AdGuard
AdGuard
+5
MyIP (IPCheck.ing)

MyIP (IPCheck.ing)

Open-source IP toolbox for IP, DNS, WebRTC and network diagnostics

9.8k
1.1k
Last commit: 15d ago

MyIP (IPCheck.ing) is an open-source web IP toolbox that detects local/public IPs, runs DNS leak and WebRTC checks, speed/latency/MTR tests, availability and whois lookup...

Alternative to:
WhatIsMyIPAddress.com
WhatIsMyIPAddress.com
+10
Technitium DNS Server

Technitium DNS Server

Authoritative and recursive DNS server with web console

7.6k
634
Last commit: 2mo ago

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.

Alternative to:
Cloudflare DNS
Cloudflare DNS
+10
Unbound

Unbound

Validating, recursive, caching DNS resolver

4.3k
424
Last commit: 13h ago

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

Alternative to:
Cloudflare DNS
Cloudflare DNS
+9
OPNsense

OPNsense

Open source firewall and routing platform for network security

4.3k
911
Last commit: 15h ago

OPNsense is an open source FreeBSD-based firewall and routing platform with a web GUI, API, VPN, traffic shaping, and security features for networks and homelabs.

Alternative to:
Fortinet FortiGate
Fortinet FortiGate
+12