Mad World #Save_GAZA: Free Palestine  

Search

AdGuard Home vs Pi-hole: Tested Side by Side on One Server, With Production Settings (2026)

AdGuard Home vs Pi-hole: Tested Side by Side on One Server, With Production Settings (2026)

AdGuard Home and Pi-hole do the same job. Each one becomes the DNS server of your home network and answers 0.0.0.0 when a device asks for an ad or tracker name, so the ad never loads, on any device, with no app to install. We ran both on the same home server at the same time and asked each one the same 131 ad and tracker names: first with its own default blocklist, then with the same blocklist on both. We also measured memory, lookup speed and the settings each one ships with, and we list the production settings we use for each.

Tested on 25 November 2026: AdGuard Home v1.0.0 (Docker image adguard/adguardhome:v1.0.0) and Pi-hole Docker tag 2026.11.0 (Core v6.6, web interface v6.6.1, FTL v6.9), side by side in Docker on an Ubuntu 26.04 home server at 192.168.1.50, asked by a laptop on the same network (192.168.1.21). Every number, output and screenshot below comes from that lab.

Quick answer: AdGuard Home or Pi-hole?

In plain words: DNS is the internet's phone book. Before a site or an app loads, your device asks a DNS server for the address of every name it needs. AdGuard Home and Pi-hole answer those questions for your whole home and send ad and tracker names to a dead end.

  • Same list, same result. With the same blocklist (HaGeZi Pro, 246,433 domains), both blocked exactly the same 127 of our 131 test names. How much gets blocked depends on the list, not on the program.
  • Out of the box, AdGuard Home blocks more. Its default list (AdGuard DNS filter, 194,772 rules) blocked 106 names; Pi-hole's default (StevenBlack's hosts, 81,677 domains) blocked 89.
  • Pi-hole uses less memory. With the same list: 46.27 MiB for Pi-hole, 115.8 MiB for AdGuard Home.
  • AdGuard Home starts with more privacy. It sends lookups to Cloudflare over HTTPS (encrypted), with DNSSEC on. Pi-hole sends plain DNS to Google with DNSSEC off until you change it.
  • Change one AdGuard Home default. Its rate limit (20 queries per second for a whole /24 network) silently dropped 6 of our 131 quick lookups. On a server the internet cannot reach, set it to 0.
  • Speed is a tie. Ten new names took 346 ms on Pi-hole and 350 ms on AdGuard Home; cached answers came back in 0 to 1 ms on both.

Pick AdGuard Home if you want encrypted lookups and DNSSEC from the first start, without an extra container. Pick Pi-hole if memory is tight (a small single-board computer), or if you want the larger community: 62,212 GitHub stars against 38,826 for AdGuard Home on 25 November 2026. Either way, choose your blocklist with care, because that is where the blocking comes from.

Results at a glance

AdGuard HomePi-hole
Version testedv1.0.02026.11.0 (Core v6.6, FTL v6.9)
Default blocklistAdGuard DNS filter, 194,772 rulesStevenBlack hosts, 81,677 domains
Blocked out of the box (of 131)10689
Blocked with the same list (HaGeZi Pro)127127
Memory, default list56.86 MiB35.66 MiB
Memory, HaGeZi Pro115.8 MiB46.27 MiB
10 new names / 10 cached350 ms / 0 ms346 ms / 10 ms
Default upstreamCloudflare, DNS over HTTPSGoogle (8.8.8.8, 8.8.4.4), plain DNS
DNSSEC out of the boxOnOff
Default rate limit20 queries/s per /24 network1,000 queries per 60 s per device
Docker image size106 MB147 MB

The two dashboards in our lab, after the tests:

Pi-hole v6 dashboard in the lab after the tests: total queries, queries blocked, percentage blocked and 246,433 domains on lists
Pi-hole 2026.11.0 at http://192.168.1.50:8081/admin/. 1: the four counters (they add up every test run below).
AdGuard Home v1.0.0 dashboard in the lab after the tests: DNS queries and blocked ads counters
AdGuard Home v1.0.0 at http://192.168.1.50:3001. 1: DNS queries and blocked ads (every test run below together).

How we ran both on one server

Both programs want port 53, the DNS port, and only one program can hold a port on one address. So in this lab Pi-hole answers DNS on port 5301 with its web interface on 8081, and AdGuard Home answers on port 5302 with its web interface on 3001. Every port is published on the server's LAN address only. At home you run one of them on port 53: our AdGuard Home guide and Pi-hole guide show that setup step by step, with the "port 53 already in use" fix for Ubuntu.

Terminal
mkdir -p pihole/etc-pihole adguard/conf adguard/work && (umask 077 && openssl rand -base64 18 > pihole_password.txt)
YAML
services:
  pihole:
    image: pihole/pihole:2026.11.0
    container_name: cmp-pihole
    hostname: cmp-pihole
    restart: unless-stopped
    ports:
      - "192.168.1.50:5301:53/tcp"
      - "192.168.1.50:5301:53/udp"
      - "192.168.1.50:8081:80/tcp"
    environment:
      TZ: America/New_York
      FTLCONF_dns_listeningMode: ALL
      WEBPASSWORD_FILE: pihole_webpasswd
    secrets:
      - pihole_webpasswd
    volumes:
      - ./pihole/etc-pihole:/etc/pihole
  adguard:
    image: adguard/adguardhome:v1.0.0
    container_name: cmp-adguard
    restart: unless-stopped
    ports:
      - "192.168.1.50:5302:53/tcp"
      - "192.168.1.50:5302:53/udp"
      - "192.168.1.50:3001:3000/tcp"
    volumes:
      - ./adguard/conf:/opt/adguardhome/conf
      - ./adguard/work:/opt/adguardhome/work
secrets:
  pihole_webpasswd:
    file: ./pihole_password.txt
Terminal
docker compose up -d
Terminal on the home server: the password file, compose.yaml with Pi-hole on ports 5301 and 8081 and AdGuard Home on 5302 and 3001, and docker compose up -d starting both containers
1: folders and a random Pi-hole password, readable by you only. 2: the compose file. 3: both containers started.

Then we finished AdGuard Home's first-run wizard (web interface on port 3000 inside the container, DNS on port 53 inside, admin user igprod), the same wizard our AdGuard Home guide shows screen by screen. Pi-hole has no wizard: its admin password comes from the Docker secret.

The test: 131 ad and tracker names

We used the domain list of d3ward's ad block test, an open source test page: 131 names in six groups (ads, analytics, error trackers, social trackers, mixed, and the telemetry of phone and TV makers). On the laptop we saved the list:

Terminal
curl -s https://raw.githubusercontent.com/d3ward/toolz/master/src/data/adblock_data.json | jq -r '.[][][]' > domains.txt && wc -l < domains.txt

And this small script, dnstest.sh, which asks one DNS server for every name and counts the answers (make it executable with chmod +x dnstest.sh):

Code
#!/bin/bash
# dnstest.sh SERVER PORT: asks the DNS server for every name in domains.txt, writes each answer to
# result-SERVER-PORT.txt and prints the totals.
out="result-$1-$2.txt"
while read -r name; do
  ip=$(dig @"$1" -p "$2" +short +tries=1 +time=3 "$name" A | grep -E '^[0-9.]+$' | tail -n1)
  if [ "$ip" = 0.0.0.0 ]; then r=blocked; elif [ -n "$ip" ]; then r=open; else r=no-address; fi
  echo "$r $name"
done < domains.txt > "$out"
cut -d' ' -f1 "$out" | sort | uniq -c
Terminal on the laptop: the 131-name test list saved to domains.txt, and the dnstest.sh script that counts blocked, open and unanswered names
1: the test list, 131 names. 2: the script.

Each name gets one of three results: blocked (the answer is 0.0.0.0, the way both programs block), open (a real address) or no-address (no answer within 3 seconds, or a name that does not exist).

Test 1: each one with its own default blocklist

Two fresh installs, nothing changed. Pi-hole starts with StevenBlack's unified hosts list (81,677 domains), AdGuard Home with its own AdGuard DNS filter (194,772 rules).

Code
./dnstest.sh 192.168.1.50 5301
./dnstest.sh 192.168.1.50 5302
dnstest.sh with the default lists: Pi-hole 89 blocked and 42 open; AdGuard Home 102 blocked, 7 no-address and 22 open
1: Pi-hole (port 5301). 2: AdGuard Home (port 5302): 7 names got no answer.

Pi-hole blocked 89 names and let 42 through. AdGuard Home blocked 102, let 22 through, and gave no answer at all for 7. A DNS server that stays silent makes the device wait and retry, so we looked at those 7 first.

Why AdGuard Home dropped 6 lookups: the default rate limit

We asked AdGuard Home about the silent names again, one at a time, and read the rate limit of each program:

Code
grep no-address result-192.168.1.50-5302.txt
dig @192.168.1.50 -p 5302 adservetx.media.net | grep -m1 status
for n in analytics.google.com ads.pinterest.com metrics.icloud.com; do echo "$n $(dig @192.168.1.50 -p 5302 +short $n | tail -n1)"; done
Terminal
docker exec cmp-adguard grep -E "^ +ratelimit(_subnet_len_ipv4)?:" /opt/adguardhome/conf/AdGuardHome.yaml
docker exec cmp-pihole pihole-FTL --config dns.rateLimit.count; docker exec cmp-pihole pihole-FTL --config dns.rateLimit.interval
The 7 unanswered names; adservetx.media.net returns NXDOMAIN; three names asked alone get answers; AdGuard Home ratelimit 20 with subnet length 24; Pi-hole rate limit 1000 per 60 seconds
1: the 7 names. 2: this one does not exist (NXDOMAIN). 3: asked one at a time, the others answer. 4: AdGuard Home's limit, 20 per second per /24 network. 5: Pi-hole's limit, 1000 per 60 seconds per device.

One name, adservetx.media.net, no longer exists (NXDOMAIN): there is nothing to block. The other six answer at once when asked alone (two of the three above come back blocked, as 0.0.0.0), and none of them shows up in AdGuard Home's query log. They were dropped by the rate limit. AdGuard Home answers at most 20 queries per second, counted per /24 network (ratelimit_subnet_len_ipv4: 24), and silently drops the rest. So every device in 192.168.1.x shares the same 20 queries a second. Pi-hole's limit is 1,000 queries per 60 seconds, for each device.

A normal home hits this too: one web page can need dozens of names in a second, and the phone, the TV and the laptop all count against the same 20. AdGuard Home's configuration notes call the rate limit a protection against floods from the internet and say it is safe to switch off when the DNS server is not reachable from the internet. Ours is published on the LAN address only, so we set it to 0 in Settings, DNS settings:

AdGuard Home Settings, DNS settings: Rate limit 20 req/s and Subnet prefix length for IPv4 addresses 24
Settings, DNS settings, DNS server configuration. 1: the default rate limit. 2: counted per /24 network, so every device in 192.168.1.x shares it.
AdGuard Home Rate limit dialog: 0 entered, the note A value of 0 means no limit, and the Save button
1: 0 means no limit. 2: Save.

The same test again:

Terminal
docker exec cmp-adguard grep -E "^ +ratelimit:" /opt/adguardhome/conf/AdGuardHome.yaml
./dnstest.sh 192.168.1.50 5302
grep no-address result-192.168.1.50-5302.txt
After setting the rate limit to 0: ratelimit: 0 in AdGuardHome.yaml, then 106 blocked, 1 no-address and 24 open
1: the setting is saved in AdGuardHome.yaml. 2: the same test again. 3: only the name that does not exist is left without an answer.

106 blocked, 24 open, and one name without an answer: the one that does not exist. If your AdGuard Home has to stay reachable from the internet, keep a limit.

Results by group

GroupNamesPi-hole (StevenBlack)AdGuard Home (AdGuard DNS filter)Both on HaGeZi Pro
Ads20201718
Analytics30152930
Error trackers6206
Social trackers20171419
Mixed20131119
Phone and TV makers35223535
Total13189106127

Each default list has its own blind spots. Only Pi-hole's list blocked 15 names: Yahoo (4), TikTok (3), Media.net (3), Bugsnag (2), Pinterest (2) and one Google Analytics name. Only AdGuard Home's list blocked 32: the session recorders Hotjar, Mouseflow and Lucky Orange (4 names each), FreshWorks (3), the telemetry of Huawei (6), Xiaomi (2), Samsung (2) and OnePlus (1), Apple (2), Yandex (2), Reddit (1) and one TikTok name.

To list the names two result files disagree on, use join; it is the last command of the next test.

Test 2: the same blocklist on both

To find out whether the program or the list makes the difference, we gave both the same list: HaGeZi's Pro list, in Adblock format. HaGeZi publishes each list in several formats and names the Adblock format for both Pi-hole and AdGuard Home, so one URL works in both:

https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/adblock/pro.txt

In AdGuard Home

Filters, DNS blocklists, Add blocklist, then the Add manually tab: a name, the URL, Add. Then switch off the AdGuard DNS filter, so only HaGeZi Pro counts.

AdGuard Home Add blocklists dialog, Add manually tab: the name HaGeZi Pro and the Adblock-format Pro list URL, then Add
Filters, DNS blocklists, Add blocklist, Add manually. 1: name and URL. 2: Add.
AdGuard Home Blocklists: HaGeZi Pro enabled with 246,434 rules, the AdGuard DNS filter switched off
1: HaGeZi Pro, 246,434 rules. 2: the default AdGuard DNS filter switched off.

In Pi-hole

Lists: paste the URL into Address, add a comment, Add blocklist. Switch the StevenBlack list to Disabled. Then run Tools, Update Gravity: Pi-hole only rebuilds its blocking database when gravity runs.

Pi-hole Lists page: the HaGeZi Pro URL in Address, a comment, and the Add blocklist button
Lists. 1: the same URL and a comment. 2: Add blocklist.
Pi-hole Subscribed lists: StevenBlack hosts Disabled, HaGeZi Pro Enabled
1: HaGeZi Pro enabled. 2: the default StevenBlack list switched to Disabled.
Pi-hole Update Gravity output: Success, 246433 ABP-style domains parsed and 246433 gravity domains
Tools, Update Gravity, Update. 1: Success. 2: the Adblock-format list read as 246,433 domains, none ignored.

Pi-hole v6 reads Adblock-format lists natively: gravity reports 246,433 ABP-style domains and 0 ignored lines. AdGuard Home counts the same file as 246,434 rules.

The result

Code
./dnstest.sh 192.168.1.50 5301
./dnstest.sh 192.168.1.50 5302
join -j 2 <(sort -k2,2 result-192.168.1.50-5301.txt) <(sort -k2,2 result-192.168.1.50-5302.txt) | awk 'BEGIN {printf "%-34s %-8s %s\n", "NAME", "PI-HOLE", "ADGUARD"} $2 != $3 {printf "%-34s %-8s %s\n", $1, $2, $3}'
Both on HaGeZi Pro: Pi-hole 127 blocked and 4 open, AdGuard Home 127 blocked and 4 open, and the comparison prints no differing name
1: Pi-hole. 2: AdGuard Home. 3: the names they disagree on: none, only the header.

127 blocked and 4 open on both, and the comparison prints only its header: not one name differs. The four names this list leaves open, on both, are adservice.google.com, ad.doubleclick.net, analytics.pinterest.com and udc.yahoo.com.

So the block rate is a choice of list. Start from one good list on either program, and add a second one only for a real need: our AdGuard Home guide adds HaGeZi's Threat Intelligence Feeds against malware and phishing sites.

Memory, speed and size

Memory after each test, from docker stats on the server:

Terminal
docker stats --no-stream --format "table {{.Name}}\t{{.MemUsage}}" cmp-pihole cmp-adguard
docker stats: with default lists Pi-hole 35.66 MiB and AdGuard Home 56.86 MiB; with HaGeZi Pro on both, Pi-hole 46.27 MiB and AdGuard Home 115.8 MiB
1: default lists. 2: both on HaGeZi Pro (246,433 domains).
BlocklistAdGuard HomePi-hole
Default list of each56.86 MiB35.66 MiB
HaGeZi Pro on both (246,433 domains)115.8 MiB46.27 MiB

Pi-hole keeps its blocklist in a database file on disk (gravity.db) and looks names up there. AdGuard Home holds its rules in memory, so its memory grows with every list you add: in our AdGuard Home guide, three lists with 1,396,187 rules took 265.8 MiB. On a server with 1 GB of memory or less, that difference matters; on anything bigger, it does not.

Lookup speed, from the laptop: ten names neither server had looked up yet, then the same ten again from cache.

Terminal
cat > names.txt <<EOF
wikipedia.org
github.com
debian.org
mozilla.org
python.org
kernel.org
ubuntu.com
docker.com
nginx.org
apache.org
EOF
for run in new cached; do for p in 5301 5302; do t=0; while read -r n; do q=$(dig @192.168.1.50 -p $p "$n" | awk "/Query time/ {print \$4}"); t=$((t + q)); done < names.txt; echo "$run names, port $p: $t ms for 10 lookups"; done; done
Lookup times from the laptop: 10 new names took 346 ms on Pi-hole and 350 ms on AdGuard Home; 10 cached names 10 ms and 0 ms
1: ten names neither server had looked up. 2: new names, then the same names from cache.

346 ms and 350 ms for ten new names (about 35 ms each, most of it the trip to the upstream service), 10 ms and 0 ms for ten cached ones. You will not feel a difference.

The versions we tested and the size of each image:

Terminal
docker exec cmp-pihole pihole -v
docker exec cmp-adguard /opt/adguardhome/AdGuardHome --version
docker image ls --format '{{.Repository}}:{{.Tag}}  {{.Size}}' | grep -E 'pihole:2026|adguardhome:v1'
Pi-hole Core v6.6, Web v6.6.1 and FTL v6.9; AdGuard Home v1.0.0; image sizes 106 MB for AdGuard Home and 147 MB for Pi-hole
1-2: the versions tested. 3: the size of each image.

The defaults each one ships with

What a fresh install does before you change anything, read from each container:

Code
for k in dns.upstreams dns.dnssec dns.cache.size; do echo "$k = $(docker exec cmp-pihole pihole-FTL --config $k)"; done
docker exec cmp-adguard grep -E -A1 "^ +(upstream_dns|enable_dnssec|cache_size):" /opt/adguardhome/conf/AdGuardHome.yaml
Pi-hole defaults: upstreams 8.8.8.8 and 8.8.4.4, DNSSEC false, cache 10000; AdGuard Home: upstream https://cloudflare-dns.com/dns-query, cache_size 4194304, enable_dnssec true
1: Pi-hole. 2: AdGuard Home (the ratelimit: 0 line is our change from the step above).
SettingAdGuard Home v1.0.0Pi-hole 2026.11.0
Upstream DNShttps://cloudflare-dns.com/dns-query (encrypted)8.8.8.8 and 8.8.4.4 (plain DNS)
DNSSECOnOff
Cache4 MiB (4,194,304 bytes)10,000 names
Rate limit20 queries/s per /24 network1,000 queries per 60 s per device
Answer for a blocked name0.0.0.00.0.0.0
Pi-hole Settings, DNS: the Google (ECS, DNSSEC) IPv4 boxes ticked as the default upstream
Pi-hole, Settings, DNS. 1: Google over plain DNS, the default.
AdGuard Home Settings, DNS settings: the upstream server address https://cloudflare-dns.com/dns-query
AdGuard Home, Settings, DNS settings. 1: Cloudflare over HTTPS, the default.

Plain DNS travels unencrypted, so your internet provider can read every name your home looks up. AdGuard Home keeps them from the provider from the first start. Pi-hole v6 forwards plain DNS only: you choose the upstream in Settings, DNS (our Pi-hole guide switches to Cloudflare and turns on DNSSEC in Expert mode), and encrypted lookups need a separate program next to it, which we did not test here.

Production settings for each

What we run in production. Each line was tested, in this lab or in our full guides (AdGuard Home guide, Pi-hole guide), which have the complete compose files:

SettingAdGuard HomePi-hole
PortsDNS and web published on the server's LAN address only ("192.168.1.50:53:53/udp")The same
Admin passwordSet in the first-run wizardA Docker secret (WEBPASSWORD_FILE), never in compose.yaml
UpstreamTwo DNS-over-HTTPS services (Cloudflare and Google), checked with Test upstreamsOne service you trust, in Settings, DNS
DNSSECOn (the default)On: Settings, DNS, Expert mode, Use DNSSEC
Rate limit0 on a server only your LAN can reachThe default, 1,000 per 60 s per device
BlocklistHaGeZi Pro, plus HaGeZi's Threat Intelligence FeedsHaGeZi Pro, Adblock format
Container rightsuser: "1001:1001", cap_drop: [ALL] with cap_add: [NET_BIND_SERVICE], no-new-privilegescap_drop: [NET_RAW], cap_add: [SYS_NICE]; no no-new-privileges, which takes away capabilities Pi-hole needs
Memory ceilingmem_limit: 512mmem_limit: 256m
Logsjson-file, 10 MB, 3 filesThe same
Backupconf/AdGuardHome.yaml and work/data in a tar file, chmod 600Stop, tar etc-pihole and compose.yaml, start, chmod 600
UpdatesA fixed version tag; change it, pull, recreate, checkThe same

Which one should you choose?

  • A small single-board computer with 512 MB to 1 GB of memory: Pi-hole. It stayed under 50 MiB with a 246,433-domain list.
  • Encrypted lookups and DNSSEC from the first start, no extra container: AdGuard Home.
  • Different rules for one device (a child's phone, a TV): both do it. AdGuard Home sets them on the device's own client page, with ready-made switches for services such as TikTok; Pi-hole uses groups and rules (a regular expression for TikTok in our Pi-hole guide).
  • The most blocking: neither one by default. Choose a list (HaGeZi Pro blocked 127 of 131 on both) and use the same list wherever you run it.
  • You already run one and it works: keep it. With the same list, switching blocks nothing more.

Frequently asked questions

Is AdGuard Home better than Pi-hole?

Not for blocking: with the same list, both blocked the same 127 of 131 names in our test. AdGuard Home is the better choice if you want encrypted lookups and DNSSEC out of the box; Pi-hole if memory is tight.

Which one blocks more ads out of the box?

AdGuard Home: 106 of our 131 test names with its default AdGuard DNS filter, against 89 for Pi-hole with StevenBlack's list. Give both the same list and the gap goes away.

Which uses less memory, Pi-hole or AdGuard Home?

Pi-hole: 35.66 MiB against 56.86 MiB with their default lists, and 46.27 MiB against 115.8 MiB with the same 246,433-domain list.

Does Pi-hole support DNS over HTTPS?

Not on its own. Pi-hole v6 forwards plain DNS to the upstream servers you tick (Google by default). AdGuard Home sends DNS over HTTPS to Cloudflare by default.

Why does AdGuard Home drop some DNS queries?

Check the rate limit in Settings, DNS settings. The default, 20 queries per second for a whole /24 network, dropped 6 of 131 quick lookups in our test. On a server only your LAN can reach, set it to 0.

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

Yes, we did, with different host ports (DNS on 5301 and 5302, web on 8081 and 3001). Your devices use one DNS server on port 53, so give port 53 to the one you keep.

Can I use the same blocklists in both?

Yes, for Adblock-format lists: the same HaGeZi Pro URL worked in both, Pi-hole v6 read it as 246,433 ABP-style domains, and both then blocked exactly the same names.

Sources

Fatima Ezzahra

Fatima Ezzahra

Fatima Ezzahra covers AI tools, open-source projects and technology news for IGPROD.

Leave a comment

Your email address will not be published. Required fields are marked *

Your experience on this site will be improved by allowing cookies Cookie Policy