38.9K ·GitHub
What is this?
A free, open-source network-wide DNS server that blocks ads and trackers for every device on your home network: it re-routes tracking domains to a 'black hole', so no client-side software is needed on the devices themselves.
So it's one server for the whole network rather than an app on each device?
Exactly — it's a single self-hosted DNS server with a web admin interface, not a browser extension or per-device app. You set it up once on one machine and it covers all your home devices.
How do I get it running?
Run the automated install script with curl, wget or fetch on Linux/Unix/macOS/FreeBSD/OpenBSD, or use the official Docker image or the Linux Snap package. The script takes options like -c for channel, -r to reinstall and -u to uninstall.
Do I need extra software for things like encrypted DNS-over-HTTPS upstreams?
No — features like encrypted upstreams (DNS-over-HTTPS, DNS-over-TLS, DNSCrypt) work out-of-the-box with no additional software. Only building from source requires a toolchain: Go 1.25+, Node.js 24.10.0+ and npm 10.8+.
What won't it be able to block?
Ads that share a domain with content: YouTube and Twitch ads, and sponsored posts on Facebook, Twitter and Instagram. The README is blunt that DNS alone will never fix this — it would take a content-blocking proxy, which is planned for the future.
Which systems can it run on?
Natively on Linux/Unix, macOS, FreeBSD and OpenBSD, plus official Docker and Snap packages. You can also build it yourself for any OS/ARCH that Go supports.
How is it different from Pi-Hole?
Both use DNS sinkholing, custom blocklists and a built-in DHCP server. AdGuard Home's pitch is that many features Pi-Hole only gets through extra software or manual configuration are built in: HTTPS for the admin interface, native cross-platform builds, acting as a DNS-over-HTTPS/TLS server itself, phishing and malware blocking, parental control, forced SafeSearch, access settings, and running without root privileges.
Why run my own instance instead of the public AdGuard DNS servers?
A public server only blocks what AdGuard decides. Your own instance lets you choose exactly what gets blocked or permitted, add your own custom filtering rules, monitor your network activity — and you are the only one in control.
Can I integrate it with Home Assistant or automate it?
Yes. AdGuard Home exposes a REST API documented with an OpenAPI spec, and there is a Python client that is used to build the AdGuard Home Assistant integration.
What are similar projects?
DnsServer, coredns, smartdns, dnscrypt-proxy, numa, portmaster, rethink-app, anti-AD
Which topics is it in?
adguard, dns-over-tls, dns-over-https, adblock, unix, dns, bsd, golang, monitoring, networking, security, free