AdGuard Home is a free DNS server that blocks ads, trackers and harmful sites for every device in your home, from one small server. This guide installs AdGuard Home 1.0 with Docker Compose, fixes the "port 53 already in use" error you get on Ubuntu, walks through the new setup wizard, and then makes it ready for daily use: good upstream DNS servers, blocklists, per-device rules for children, unblocking a site that broke, local names, a locked-down container, backups and upgrades.
Tested on 25 November 2026: AdGuard Home v1.0.0 (released on 19 November) in Docker 29.10.1 with Docker Compose v5.8.0, on an Ubuntu 26.04 home server at 192.168.1.50. Three devices on the same network asked it for DNS: a laptop (192.168.1.21), a TV (192.168.1.23) and a test machine at the address of a child's phone (192.168.1.22). Every screenshot and output below comes from that lab; the dashboard numbers come from a few rounds of test traffic, not from a real household.
Quick answer: AdGuard Home with Docker Compose in five steps
In plain words: DNS is the internet's phone book. Before any app or site loads, your device asks a DNS server for the address of a name. AdGuard Home becomes that phone book for your whole home network: it looks up normal names for your devices and gives ads, trackers and harmful sites a dead end (0.0.0.0), so they never load.
- Give your server an address that never changes (a DHCP reservation on the router). Ours is 192.168.1.50.
- Create
compose.yamlwith the imageadguard/adguardhome:v1.0.0and publish ports 53/tcp, 53/udp and 3000/tcp on that address (192.168.1.50:53:53/udp), not on all addresses: on Ubuntu, systemd-resolved already uses port 53. - Run
docker compose up -d, openhttp://192.168.1.50:3000and finish the five wizard screens (keep the web port on 3000). - Test from one device with
dig @192.168.1.50 example.com, then set your router's DHCP DNS server to the AdGuard Home address. - When you add devices under Clients, switch on Use global settings for Protection: in version 1.0.0 the form leaves it off, and the device loses its ad blocking.
Each step has a full, tested section below. The result in our lab:

Four words you will meet in this guide:
- Upstream: the public DNS service AdGuard Home asks for the names it does not block.
- Blocklist: a list of ad, tracker and malware names that get
0.0.0.0. - Client: one device on your network, known to AdGuard Home by its address.
- Port 53: the network port of DNS. On one address, only one program can use it.
What AdGuard Home does, and what changed in 1.0
Every app and website starts with a DNS question: "what is the address of this name?". When your devices ask AdGuard Home, it answers normal names through an upstream DNS service and answers 0.0.0.0 for names on its blocklists, so the ad or tracker never loads. It works for phones, TVs and game consoles too, with nothing to install on them.
Version 1.0 arrived on 19 November 2026 after years of 0.107 releases. The web interface is new (the same menus with a new look), your settings carry over when you upgrade (we tested it below), and new installs use Cloudflare's DNS over HTTPS as the default upstream instead of Quad9. In Docker, the image starts AdGuard Home with --no-check-update: the built-in updater is off, and you update by changing the image tag (see the upgrade section).
Before you start
- A Linux machine that stays on: a mini PC, a Raspberry Pi or a home server, with Docker and the Compose plugin (install Docker Compose on Ubuntu).
- A fixed LAN address for that machine. Devices will send every lookup to it, so it must never change. A DHCP reservation in the router is the easiest way.
- Five minutes to check what already uses port 53, the DNS port.
docker --version
docker compose version
ip route get 1.1.1.1
sudo ss -lunp "sport = :53"
src is the server's own LAN address. 4: systemd-resolved already holds port 53 on 127.0.0.53 and 127.0.0.54.ip route get 1.1.1.1 is a quick way to find the server's LAN address: it is the value after src. The last command shows the problem we fix in step 1: Ubuntu's systemd-resolved already listens on port 53, on 127.0.0.53 and 127.0.0.54.
Step 1: Create the Compose file (and fix "port 53 already in use")
Make a folder for AdGuard Home, with one sub-folder for its settings (conf) and one for its data (work):
mkdir -p ~/adguard/conf ~/adguard/work
cd ~/adguardThe usual Compose file publishes port 53 on every address of the server:
services:
adguardhome:
image: adguard/adguardhome:v1.0.0
container_name: adguardhome
restart: unless-stopped
ports:
- "53:53/tcp"
- "53:53/udp"
- "3000:3000/tcp"
volumes:
- ./work:/opt/adguardhome/work
- ./conf:/opt/adguardhome/confOn Ubuntu it does not start:

53:53 on every address fails on Ubuntu: systemd-resolved got there first.The fix that keeps systemd-resolved running: publish the ports on the server's LAN address only. Put your own address in place of 192.168.1.50:
sed -i 's/- "53:53/- "192.168.1.50:53:53/; s/- "3000:3000/- "192.168.1.50:3000:3000/' compose.yaml && grep -A3 'ports:' compose.yamlNow docker compose up -d works, and both programs share port 53 without a clash: AdGuard Home answers on 192.168.1.50, systemd-resolved keeps 127.0.0.53 for the server itself.

This is also the safer choice. With 53:53, a server with a public address (a VPS, or a machine with an open firewall) would answer DNS for the whole internet: an "open resolver" that attackers use to flood other people. Bound to the LAN address, AdGuard Home only answers your network.
The image tag is v1.0.0, not latest. A fixed tag means an update only happens when you decide, after a backup.
Step 2: Run the setup wizard
Open http://192.168.1.50:3000 (your server's address, port 3000) in a browser on the same network. The 1.0 wizard has five screens, then a confirmation page.

Choose a username and a long password. The wizard asks for 8 characters or more, with upper and lower case letters.

Screen 3 sets the port of the dashboard. It suggests 80; type 3000. Our Compose file publishes 3000, so the same address keeps working after the wizard, and port 80 stays free for a web server or a reverse proxy. The addresses this screen lists (127.0.0.1 and 172.18.0.2) belong to the container inside Docker. Ignore them: your devices use the server's address.

Screen 4 is the DNS server. Keep port 53.



Click Open dashboard and log in with the account from screen 2.
Step 3: Test one device, then point your router at AdGuard Home
Before you change anything for the whole house, test from one computer. On Linux (and anywhere dig is installed), ask AdGuard Home directly:
dig @192.168.1.50 example.com +noall +answer +stats
dig @192.168.1.50 pagead2.googlesyndication.com +noall +answer
dig @192.168.1.50 www.google-analytics.com +short
0.0.0.0.A normal name gets its real addresses; ad and tracker names get 0.0.0.0. Then open your router's settings and, in the DHCP or LAN section, set the DNS server to the AdGuard Home address. Give only that address: if the router also hands out a public DNS server, devices can use it and skip the filter. Devices pick up the change when they renew their address; turning Wi-Fi off and on again does it.
Two notes. Some routers send every lookup themselves instead of handing out the address: AdGuard Home then sees one client, the router, and the default limit of 20 requests per second per client applies to the whole house. Handing out the AdGuard Home address through DHCP avoids that and gives you per-device statistics. And if your router cannot change its DNS server, you can set the DNS address on each device instead (phones: DNS settings on Android).
Step 4: Read the dashboard

The dashboard counts queries, blocked ads and the busiest devices and domains. In our lab, 40 of the first 142 queries (28.2%) were blocked by the default list alone, and the average processing time was 13 ms.
Each device appears with its own address (192.168.1.21, .22, .23), even though AdGuard Home runs in Docker's default network: published ports keep the address of the device that asked (we tested over IPv4). Names come in step 7.
Step 5: Choose your upstream DNS servers
Upstreams are the DNS services AdGuard Home asks for the names it does not block. Open Settings, DNS. A new 1.0 install uses https://cloudflare-dns.com/dns-query (DNS over HTTPS, so your provider cannot read your lookups), with 1.0.0.1 and 1.1.1.1 as bootstrap servers: they only find the address of the upstream itself.
Add a second provider so one outage does not stop your whole network. We added Google's DNS over HTTPS address below Cloudflare's:
https://cloudflare-dns.com/dns-query
https://dns.google/dns-query
The upstream mode stays on Load balancing, which spreads the queries over both and favours the faster one. Test upstreams checks them before you rely on them:

Leave DNSSEC on (it is on by default in 1.0): AdGuard Home then refuses answers with broken signatures. If you upgraded an older install, your upstream may still be Quad9 (see the upgrade section); our Quad9 DNS guide explains its addresses and why Quad9 announced it would stop serving users in France from 24 November 2026.
Step 6: Add blocklists, and what they cost in memory
The default "AdGuard DNS filter" is a good start. Open Filters, Blocklists, Add blocklist: the 1.0 catalog lists the best-known lists, so you do not need to paste addresses. We added one general list and one security list:



Lists cost memory. We measured the container with docker stats:
| Blocklists | Rules | Memory |
|---|---|---|
| AdGuard DNS filter only | 194,707 | 62.96 MiB |
| + HaGeZi's Pro + Threat Intelligence Feeds | 1,396,187 | 265.8 MiB |
One general list and one security list cover most homes. More general lists mostly repeat the same domains, and each one adds memory and update time. On a Raspberry Pi with 1 GB of RAM, keep it to two or three lists. AdGuard Home downloads the lists again every 24 hours.
Step 7: Name your devices and give each one its own rules
Open Settings, Clients, Add client. Give the device a name and its address (an IP address, a range, a MAC address, or a ClientID for encrypted DNS). Every device needs a fixed address for this, so make DHCP reservations for the ones you name.
One trap in version 1.0.0. The form leaves Use global settings for Protection switched off, and saves the device with filtering off. We added our laptop with the defaults, and its next lookup of an ad domain got the real address instead of 0.0.0.0:

So for every normal device, switch it on before you save:

A child's phone is the case for custom settings. Leave the global switch off, open Protection, and turn on Filter requests (the blocklists), Browsing security, Parental control and Safe search:

Then open Blocked services on the same page. With the Social networks filter, we turned on Snapchat and TikTok for this device only:

The test from the phone's address shows the three effects, and the laptop next to it is not touched:

Safe search works by answering Google and YouTube with their restricted versions (forcesafesearch.google.com, restrictmoderate.youtube.com), so explicit results are filtered by Google itself. Note that a phone on mobile data, or with its own encrypted DNS turned on, does not use AdGuard Home at all.


Step 8: Unblock a site that stopped working
Blocklists sometimes catch something you need. A common case: links in shopping e-mails and some ads pass through a click-tracking domain such as ad.doubleclick.net first. With that domain blocked, the link cannot open:
Find the name in the Query log (type it in the search box), open the menu at the end of its row, and choose Unblock:

AdGuard Home writes an allow rule under Filters, Custom rules. The checker on that page tells you which rule decides for any name:


The rule is @@||ad.doubleclick.net^$important: @@ means allow, || covers the domain and its sub-domains, and $important makes it win over the blocklists. Allow only the exact name that broke, not a whole company domain.
Step 9: Give your server a local name
DNS rewrites answer names you choose with addresses you choose. They are handy for the services on your network. Use names under home.arpa, the name space reserved for home networks (RFC 8375), so they never clash with real domains:


Now http://adguard.home.arpa:3000 opens the dashboard from any device. For HTTPS on such local names, see local HTTPS with mkcert.
Production setup: lock down the container
The image runs AdGuard Home as root, with Docker's default capabilities. It does not need either. This is our final Compose file:
services:
adguardhome:
image: adguard/adguardhome:v1.0.0
container_name: adguardhome
restart: unless-stopped
user: "1001:1001"
cap_drop: [ALL]
cap_add: [NET_BIND_SERVICE]
security_opt: ["no-new-privileges:true"]
ports:
- "192.168.1.50:53:53/tcp"
- "192.168.1.50:53:53/udp"
- "192.168.1.50:3000:3000/tcp"
volumes:
- ./work:/opt/adguardhome/work
- ./conf:/opt/adguardhome/conf
mem_limit: 512m
logging:
driver: json-file
options: { max-size: "10m", max-file: "3" }user: "1001:1001": runs as a normal user. Use your own user and group numbers (id -u,id -g), and give that user the two folders first:sudo chown -R "$(id -u):$(id -g)" conf work.cap_drop: [ALL]andno-new-privileges: no extra rights inside the container.mem_limit: 512m: a ceiling, so a huge blocklist cannot eat the server's memory.- Log rotation: Docker keeps at most three 10 MB log files.
One line is not optional: cap_add: [NET_BIND_SERVICE]. Without it the container restarts in a loop, because the AdGuard Home program carries a file capability that Docker can no longer grant:


Keep both ports off the internet: port 53 (the open-resolver problem above) and port 3000 (the dashboard). To use AdGuard Home away from home, connect through a VPN such as Tailscale and use the server's address as your DNS.
Back up and restore
All the settings (upstreams, lists, clients, rules, rewrites, your account) live in conf/AdGuardHome.yaml. Statistics and the query log are in work/data. The downloaded lists come back by themselves, so leave them out:
cd ~/adguard
tar -czf ~/adguard-backup-$(date +%F).tar.gz --exclude=work/data/filters conf work
chmod 600 ~/adguard-backup-*.tar.gzWe then tested a real restore: stop, put the backup's conf back, start. With more than one backup in the folder, write the file's full name instead of the *.
docker compose down && mv conf conf.before-restore && tar -xzf ~/adguard-backup-*.tar.gz conf && docker compose up -d
The archive holds your password hash and the login sessions: keep it private (chmod 600) and copy it off the server.
Upgrade to a new version (and the 0.107 to 1.0 change)
- Read the release notes on GitHub.
- Make a backup (above).
- Change the tag in
compose.yaml, then rundocker compose pullanddocker compose up -d.
We tested an upgrade from v0.107.80 to v1.0.0. The settings stayed, DNS kept working, and one thing did not change by itself: the upstream. Installs made before 1.0 keep Quad9 (https://dns10.quad9.net/dns-query, bootstrap 9.9.9.10), because 1.0 only changes the default for new installs:

After an upgrade, open Settings, DNS and choose your upstreams on purpose, as in step 5.
Troubleshooting
| What you see | Cause | Fix |
|---|---|---|
failed to bind host port 0.0.0.0:53/tcp: address already in use | systemd-resolved uses port 53 | Publish the ports on the server's LAN address (step 1) |
exec /opt/adguardhome/AdGuardHome: operation not permitted, container restarting | cap_drop: [ALL] without the one capability it needs | Add cap_add: [NET_BIND_SERVICE] |
| A device sees ads again after you named it | The client was saved with Use global settings for Protection off | Edit the client and switch it on (step 7) |
| The wizard lists 172.18.0.2 or 127.0.0.1 | Those are the container's own addresses | Use the server's LAN address on your devices |
| The dashboard stops answering after the wizard | The web port was set to 80, but only 3000 is published | Publish the port you chose, or set the web port back to 3000 in conf/AdGuardHome.yaml |
Frequently asked questions
Is AdGuard Home free?
Yes. AdGuard Home is open source (GPL-3.0) and free, with no paid tier. You only need a machine to run it on.
Which ports does AdGuard Home use?
Port 53 (TCP and UDP) for DNS, and one port for the web interface: 3000 during the setup wizard, then the port you choose on screen 3 (80 by default; we kept 3000). Encrypted DNS for remote devices uses more ports, which you only open if you set it up.
How much memory does AdGuard Home need?
In our test, 63 MiB with the default list and 266 MiB with about 1.4 million rules from three lists. Memory grows mostly with the blocklists, so a small machine is fine if you keep the lists short.
Why do I still see some ads?
DNS blocking works per name. Ads served from the same domain as the content (YouTube video ads, for example) cannot be removed by DNS without breaking the site, and a device that uses its own DNS (mobile data, encrypted DNS in the browser or on the phone) does not ask AdGuard Home at all.
Should I use AdGuard Home's DHCP server?
Only if your router cannot hand out a custom DNS server. In Docker it also needs host networking. Changing the router's DNS setting is simpler and keeps one DHCP server on the network.
Can I put AdGuard Home on the internet to use it everywhere?
Not with plain DNS on port 53: it becomes an open resolver. Use a VPN to reach your home network, or set up encrypted DNS with a certificate and a ClientID for each device.
Do I need to update the blocklists?
No. AdGuard Home checks every list every 24 hours. Check for updates on the Blocklists page does it at once.
Related guides
- Quad9 DNS (9.9.9.9): Servers, IPv6, Private DNS, DoH Setup and Quad9 vs Cloudflare, Tested
- Tailscale 101: What It Is, Setup on Linux, SSH, Exit Node and Docker (2026)
- Local HTTPS with mkcert: Fix NET::ERR_CERT_AUTHORITY_INVALID for Self-Hosted Apps and Synology
- Install Docker Compose on Ubuntu using Docker’s repository
- Vaultwarden with Docker Compose: HTTPS, Admin Token, Backups and a Tested Restore (2026)
Sources
Leave a comment
Your email address will not be published. Required fields are marked *