Cloudflare DNS logo

7 self-hosted Cloudflare DNS alternatives

Managed authoritative DNS service offering global Anycast routing, DNS record management via dashboard and API, DNSSEC support, and features for high availability and low-latency domain name resolution.

Alternatives to Cloudflare DNS

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.

Pi-hole screenshot

60.6k stars3.3k forkslast commit Actively maintained

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 lookups.

MyIP (IPCheck.ing) screenshot

11.8k stars1.2k forksMITlast commit Actively maintained

Open-source DNS proxy and network-wide ad-blocker for local networks. Supports DoH/DoT, per-client rules, caching, deep CNAME inspection, Prometheus metrics, Docker and Helm.

Blocky screenshot

6.9k stars298 forksApache-2.0last commit Actively maintained

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

Unbound screenshot

4.8k stars448 forksBSD-3-Clauselast commit Actively maintained

ddclient is a Perl-based Dynamic DNS client that detects IP changes and updates DNS records across many supported DDNS and DNS provider APIs.

ddclient screenshot

3.5k stars398 forksGPL-2.0last commit Actively maintained

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

Gravity screenshot

927 stars30 forksGPL-3.0last commit Actively maintained

What replacing Cloudflare DNS actually involves

Every option on this page is open source and free to run on your own hardware, so you own the data and there is no subscription to cancel. 7 of 7 shipped a commit in the last six months. Licences in this list: MIT, GPL-3.0, Apache-2.0, BSD-3-Clause, GPL-2.0. In exchange you take on hosting, backups and updates yourself.

Browse everything in Core Network Services (DNS, DHCP, IPAM).

Other tools people replace alongside Cloudflare DNS