AdGuard Home vs Pi-hole

· in fundamentals

Pi-hole 2026.10.1 (Core v6.5, Web v6.6.1, FTL v6.8) and AdGuard Home v0.107.80 were run side by side in Docker 29.9.2 on Fedora 44 on 8 November 2026, on high ports bound to 127.0.0.1. The tests covered first-run setup, default blocklists, upstream servers, AdGuard Home serving DNS-over-TLS and DNS-over-HTTPS with a self-signed certificate, one per-client rule in each, query logs, idle docker stats memory and dig results for 30 domains. DHCP was only read from the config and API, never switched on. Pi-hole serving encrypted DNS, installing either program without Docker, running on a Raspberry Pi and port 53 were not tested.

Pi-hole and AdGuard Home both filter ads and trackers for every device on your network by answering DNS queries. This guide compares them after running both current Docker images side by side, and says which one fits which kind of home.

What both of them do

Both programs are DNS servers. Your devices ask them for the address of a domain, and a domain on a blocklist gets a dead answer instead of a real one, so the ad or tracker never loads. Both run on a small machine such as a Raspberry Pi or a mini PC, both log every query, and both let you choose your own blocklists.

DNS filtering has limits that apply to both. It blocks by domain name, so it cannot remove an ad served from the same domain as the content, and it cannot filter a device that ignores your DNS server and uses its own.

The versions in this guide are the ones from the test run:

  • pihole/pihole:2026.10.1, digest sha256:30f803ad5dd60ff96cc0a63008a2e9271af481c1b0399a182192b2e91152c1f9. Inside it: Core v6.5, Web v6.6.1 and FTL v6.8.
  • adguard/adguardhome:v0.107.80, digest sha256:e2e1b48c832f7705be915873f95de0d5114de573736441d7f2923a8a6293027c.

The short answer

Choose AdGuard Home if you want encrypted DNS built in, and per-device settings, each with its own client entry. In the test it served DNS-over-TLS and DNS-over-HTTPS from its own settings page, and its default upstream was already encrypted.

Choose Pi-hole if you want to sort devices into groups and decide which blocklists each group gets, and you are happy to add a separate program for encrypted DNS. It used far less memory at idle in the test, though both numbers are small.

On a home network with a few devices, either works, and the blocklists you pick matter as much as the program.

Setup compared

Both programs ship an official Docker image, which is the easiest way to try them without changing your machine. The commands below are the ones used in the test. They bind DNS to unusual host ports on 127.0.0.1 so that nothing else on the machine is affected. On a real server you would publish port 53 instead, after freeing it if another program such as a local resolver already holds it. Port 53 was not tested here.

Pi-hole, on the machine that will run it:

docker run -d --name pihole \
  -p 127.0.0.1:15353:53/tcp -p 127.0.0.1:15353:53/udp -p 127.0.0.1:15380:80/tcp \
  -e TZ=UTC \
  -e FTLCONF_webserver_api_password=choose-a-password \
  -e FTLCONF_dns_listeningMode=ALL \
  pihole/pihole:2026.10.1

The Pi-hole Docker documentation says the listening mode should be ALL on Docker's default bridge network, and that a password is generated at random if you do not set one. The container reported itself healthy within 40 seconds, with the default blocklist already downloaded.

AdGuard Home, on the same machine:

docker run -d --name adguardhome \
  -p 127.0.0.1:15354:53/tcp -p 127.0.0.1:15354:53/udp \
  -p 127.0.0.1:13000:3000/tcp -p 127.0.0.1:18080:80/tcp \
  adguard/adguardhome:v0.107.80

AdGuard Home starts in a setup mode. On first launch it redirects every request to /install.html, and the setup page listens on port 3000. According to AdGuard's getting started guide, the wizard asks you to pick a network interface and create a user. For the test, the same setup was done through the setup API instead of the wizard, and the wizard screens were not clicked through.

The two setups differ in where the password comes from. Pi-hole takes it from an environment variable and has no setup mode, so a container is ready as soon as it starts. AdGuard Home needs a setup step before it answers queries, which is one more step, and the wizard asks for the network interface and the admin user.

Outside Docker, Pi-hole installs with curl -sSL https://install.pi-hole.net | bash, as shown in its basic install page. AdGuard Home has its own install script and a manual download, both listed in the project README. Neither was run outside Docker here.

Requirements and platforms

Pi-hole's prerequisites page lists 512 MB of RAM and at least 2 GB of free disk, with 4 GB advised. It supports Alpine, Armbian, Debian, CentOS Stream, Fedora, Raspberry Pi OS and Ubuntu, and needs port 53 free. Port 67 is only for its DHCP server, and ports 80 and 443 serve the web interface. The AdGuard Home README does not state hardware requirements. Its getting started guide names port 3000 for the first setup, port 80 for the web interface and port 53 for DNS.

AdGuard's README says AdGuard Home can run without root privileges and Pi-hole cannot. On Linux, its guide says to grant the binary the CAP_NET_BIND_SERVICE capability, or to move the DNS port above 1024 in the config file. This is AdGuard's own claim and was not tested here. The README's comparison table also lists AdGuard Home as cross-platform and says Pi-hole runs on other systems only through Docker.

Default blocklists

After first start, each program had a different default list:

  • Pi-hole: one list, the StevenBlack hosts file, which Pi-hole's database labelled "Migrated from /etc/pihole/adlists.list". After the download, pihole-FTL reported 78,216 domains in its gravity database.
  • AdGuard Home: the "AdGuard DNS filter", enabled, with 190,637 rules. A second list, "AdAway Default Blocklist", was present but disabled.

The two numbers do not measure the same thing. Pi-hole counts unique domains, and AdGuard Home counts rules, and one rule can cover a domain and all its subdomains. The sizes say little about which blocks more, so the next section tests it with real queries.

You can swap or add lists in either program. The test used each program's default and did not load the same list into both, so it compares the defaults, not the filtering engines.

What each one blocked

The test asked each program for the A record of 25 ad, tracker and telemetry domains and 5 ordinary domains, using dig @127.0.0.1 -p <port> <domain>. A blocked name came back as 0.0.0.0. Both programs resolved all 5 ordinary domains: example.com, wikipedia.org, debian.org, github.com and python.org.

  • Pi-hole returned 0.0.0.0 for 21 of the 25 tracker domains.
  • AdGuard Home returned 0.0.0.0 for 17 of the 25.
  • Both blocked the same 15.

The differences were in the lists:

  • Only Pi-hole blocked adjust.com, ads.twitter.com, ads.yahoo.com, googlesyndication.com, mixpanel.com and scorecardresearch.com.
  • Only AdGuard Home blocked metrics.apple.com and segment.io.
  • Neither blocked connect.facebook.net or telemetry.microsoft.com.

This is a small, one-time check on 25 names chosen by hand, and it shows how the two default lists differ on those names. It does not show that one program blocks more ads in everyday browsing.

Subdomains work differently

One difference comes from the list formats. The StevenBlack file lists exact hostnames, and Pi-hole blocks those names. AdGuard's filter uses Adblock-style rules, and AdGuard's filtering syntax page says ||example.org^ blocks the domain and all its subdomains.

The test shows the effect. Pi-hole's gravity database held doubleclick.net, adnxs.com and criteo.com but not x.doubleclick.net or tracker.criteo.com, and Pi-hole returned no block for x.doubleclick.net and tracker.criteo.com. AdGuard Home returned 0.0.0.0 for both, and for random-sub.adnxs.com, which Pi-hole did not block. In AdGuard's list the rules look like ||criteo.com^.

Upstream DNS and encrypted DNS

When a query is not blocked, the program forwards it to an upstream resolver. In the test containers the defaults were different:

  • Pi-hole forwarded to 8.8.8.8 and 8.8.4.4, which is plain, unencrypted DNS. DNSSEC validation was off.
  • AdGuard Home forwarded to https://dns10.quad9.net/dns-query (DNS-over-HTTPS), with four bootstrap addresses for finding that server, and DNSSEC on.

The Pi-hole documentation page read for this guide sets up an encrypted upstream through an extra program. Its cloudflared guide sets Pi-hole to use a local cloudflared service as its upstream, and the same page warns that the feature it relies on is deprecated by Cloudflare and that new installations through this method are not recommended. Whether Pi-hole can reach an encrypted resolver through another program was not tested.

The README's table says AdGuard Home supports DNS-over-HTTPS, DNS-over-TLS and DNSCrypt upstreams, and that Pi-hole needs additional software for each. The same table says AdGuard Home can run as a DNS-over-HTTPS or DNS-over-TLS server and Pi-hole needs additional software for that too.

Serving encrypted DNS to your own devices

Serving means that your phone talks to your server over an encrypted connection, which matters when the phone is away from home. This was tested on AdGuard Home only. For the test, a self-signed certificate for the name dns.test was loaded through the TLS settings API, and both protocols were queried from the host:

dig @172.17.0.4 -p 853 +tls +tls-ca=c.pem +tls-hostname=dns.test example.com
dig @172.17.0.4 -p 443 +https=/dns-query +tls-ca=c.pem +tls-hostname=dns.test example.com

Both commands returned answers, and a blocked name returned 0.0.0.0 over both. The AdGuard Home log also showed a DNS-over-QUIC listener on port 853. A self-signed certificate is fine for a test and wrong for real devices, which need a certificate for a domain you own. Getting that certificate, and reaching the server from outside, is a separate job, covered in the port forwarding guide. Reaching the server from outside also exposes a DNS server to the internet, so restrict who can use it.

Per-client settings

Both programs can treat devices differently, in different ways.

Pi-hole uses groups. You create a group, add a client to it, and assign blocklists to groups. In the test, a client in a new group that had no blocklists resolved ads.superawesome.tv and ads.stickyadstv.com normally, and once the client was removed, both returned 0.0.0.0 again. A first attempt with doubleclick.net still returned 0.0.0.0 in the seconds after the client was added, which was not explained, so the test was repeated with these two names. This was done through the API, and the Groups and Clients pages in the web interface were not used.

AdGuard Home uses a client entry for each device. Each entry can use the global settings or its own. In the test, a client entry with filtering switched off made doubleclick.net resolve to a real address, and deleting the entry brought the block back. The API also listed 139 services that you can block per client or globally.

Pi-hole's model suits you when you want to build lists once and attach them to several kinds of device. AdGuard's suits you when you think device by device, with a blocked-services list, parental control and safe search next to each device. The README says Pi-hole needs non-default blocklists for parental control and does not offer safe search.

Query log and statistics

Both keep a searchable query log and a dashboard. Entries from the test:

  • Pi-hole's database retention setting was 91 days.
  • AdGuard Home's default log interval was 90 days and its statistics interval 24 hours.

Both programs saw every client as 172.17.0.1 in the test, because Docker's port publishing hides the real source address of a request. On a real network, run them on the host network or give the container its own address if you want per-client logs and rules to use your devices' real addresses. That setup was not tested here.

Resource use

After startup and the 60 or so test queries, docker stats --no-stream reported:

  • Pi-hole: 8.3 to 8.8 MiB of memory and about 0.1 percent CPU.
  • AdGuard Home: 46.9 to 51.8 MiB of memory and about 0 percent CPU.

The images were 152 MB for Pi-hole and 116 MB for AdGuard Home on disk. docker stats may not show all the memory a full machine would use, and the test used light traffic from one client. Treat them as a sign that both are small, not as a benchmark. Both ran in the test with little memory and CPU, but neither was run on a Raspberry Pi here. The hardware guide covers choosing a machine.

DHCP and the admin interface

Both include a DHCP server, which lets the program hand out addresses on your network and name itself as the DNS server for every device. The README's table lists DHCP as supported in both. In the test, DHCP was never switched on, because a second DHCP server on a live network would fight with your router. Only the settings were read: Pi-hole's dhcp.active was false, and AdGuard Home's DHCP status reported disabled with an empty range. Pi-hole's Docker documentation says that to use Pi-hole as the DHCP server you need to publish port 67/udp and add the NET_ADMIN capability.

If you do not use DHCP, you can instead enter the filter's address as the DNS server in your router's settings, and your devices then pick it up from the router.

For the admin interface, the AdGuard README's table says Pi-hole needs manual lighttpd configuration for HTTPS. In the v6 test the web server is part of Pi-hole itself, and the FTL log showed ports 80 and 443 listening and a self-signed certificate created at first start. The table's lighttpd note does not match Pi-hole v6, whose web server is built in.

Which to choose

  • Pick AdGuard Home if you want encrypted upstream DNS by default, DNS-over-TLS or DNS-over-HTTPS for your phone, subdomain blocking from the default list, and per-device settings with parental control.
  • Pick Pi-hole if you prefer group-based lists, want the lowest memory use, or already know its web interface and have lists built for it.
  • Pick neither if you only need ad blocking in a browser. A browser-based blocker works inside the page, where DNS filtering cannot, and needs no always-on machine.

Moving from one to the other does not touch your devices if they get their DNS server from the router: you change one address there.

Frequently asked questions

Is AdGuard Home better than Pi-hole?

It depends on what you need. AdGuard Home had encrypted upstream DNS on by default and served DNS-over-TLS and DNS-over-HTTPS in the test, while Pi-hole used less memory at idle and offers group-based blocklists.

Can I run Pi-hole and AdGuard Home on the same machine?

Yes, if they use different ports. In the test, both ran in Docker on one machine, with DNS on ports 15353 and 15354.

Does Pi-hole support DNS-over-HTTPS?

Not by itself. Pi-hole's documentation sets it up with a separate cloudflared service as the upstream, and warns that the feature this relies on is deprecated by Cloudflare.

Which one uses less RAM?

Pi-hole did. After startup and about 60 queries, docker stats showed 8.3 to 8.8 MiB for Pi-hole and 46.9 to 51.8 MiB for AdGuard Home.

Do Pi-hole and AdGuard Home block the same ads?

Mostly, with different edges. On 25 ad and tracker domains, both blocked the same 15, Pi-hole blocked 6 more and AdGuard Home blocked 2 more. The result reflects each program's default blocklist.

Do I need to use the DHCP server?

No. You can set the DNS server address in your router instead, and devices pick it up from the router.

Sources

  1. AdGuard Home README, including its comparison table with Pi-hole
  2. AdGuard Home getting started, AdGuard documentation
  3. DNS filtering syntax, AdGuard documentation
  4. Pi-hole prerequisites, Pi-hole documentation
  5. Pi-hole basic install, Pi-hole documentation
  6. Pi-hole Docker, Pi-hole documentation
  7. AdGuard Home vs Pi-hole, Blockify (for the limits of DNS blocking)
  8. Pi-hole with cloudflared, Pi-hole documentation