Blocky vs Pi-hole
Editor take
Choose Blocky for encrypted DNS upstreams set in its config. Choose Pi-hole for a web dashboard and an optional DHCP server.
Where they differ
Only what is true of one of them and not the other. Each app's weak spots are the other app's strengths.
Blocky
Where Blocky is stronger
- Encrypted upstreams in the configSets DNS-over-HTTPS, DNS-over-TLS and DNS-over-QUIC resolvers in YAML; Pi-hole forwards plain DNS unless you run cloudflared or dnscrypt-proxy beside it.1
- Prometheus metrics for dashboardsServes an optional Prometheus metrics endpoint and ships Grafana dashboards; Pi-hole's docs cover its web dashboard but list no metrics endpoint.2
Pi-hole
Where Pi-hole is stronger
- Web dashboard to view and controlShips a browser dashboard to view and control the filter; Blocky has no web interface, so you edit YAML and use its API or CLI.3
- DHCP server on the same boxIts optional DHCP server, once switched on, hands out addresses and the DNS setting together, so it takes over leasing from the router; Blocky leaves leases to the router.4
Blocky vs Pi-hole: specs side by side
Every spec for both apps in one table, so you can check install options, hardware and client apps before you pick one.
Common questions
Does either one encrypt DNS queries to the internet?
Blocky does, from its own YAML config: DNS-over-HTTPS, DNS-over-TLS and DNS-over-QUIC resolvers are set as upstreams. Pi-hole forwards plain DNS unless you run cloudflared or dnscrypt-proxy beside it, and its cloudflared guide warns that new installs this way are not recommended.
Can Blocky show me the queries from last week?
Not in a browser. Blocky has no web interface and no query database of its own; once query logging is configured, it can write queries to CSV, MySQL, PostgreSQL or TimescaleDB for viewing in another tool. Pi-hole keeps a SQLite query database, and its dashboard shows that query history.
Can Pi-hole hand out IP addresses too?
Yes. Pi-hole has an optional DHCP server, and once switched on it gives out addresses and the DNS setting together. Blocky has no DHCP server and its docs tell you to keep the router's DHCP, pointing its DNS setting at Blocky.
Do I need a database to run Blocky?
No. Blocky is stateless and keeps its lists, client groups and upstreams in YAML, so a backup is a file copy. Pi-hole keeps its lists and domains in a SQLite database and its query history in a second one.
Sources: Blocky docs and Pi-hole docs.