AdGuard Home Reference
Written
Quick reference for AdGuard Home running on the mini server as a network-wide DNS ad blocker.
Access
| Web UI (local) | http://192.168.1.16:3053 |
| Web UI (domain) | http://adguard.sultanmaula.com |
| DNS Server | 192.168.1.16:53 |
Docker
Located at /home/sultan/docker/adguardhome/.
# Start
docker compose up -d
# Stop
docker compose down
# Logs
docker logs adguardhome -f
# Restart
docker restart adguardhome
Change Password
AdGuard Home v0.107+ has no password change UI. Must edit the config directly.
# 1. Generate bcrypt hash
python3 -c "import bcrypt; print(bcrypt.hashpw(b'yourpassword', bcrypt.gensalt(12)).decode())"
# 2. Update hash in config
docker exec adguardhome sed -i 's|OLD_HASH|NEW_HASH|' /opt/adguardhome/conf/AdGuardHome.yaml
# 3. Restart
docker restart adguardhome
Active Blocklists
| Name | Rules |
|---|---|
| AdGuard DNS filter | ~180k |
| OISD Big | ~234k |
| Spotify Ads | ~236k |
| YouTube: BlocklistProject | ~24k |
| Dandelion Sprout’s Anti-Malware | ~13k |
| Peter Lowe’s List | ~1k |
| AdAway Default | ~7k |
| Spotify Ads (AdGuard) | ~442 |
Total: ~695k rules.
Key Custom Rules
! General ads
||doubleclick.net^
||googlesyndication.com^
||googleadservices.com^
||adservice.google.com^
||pagead2.googlesyndication.com^
! YouTube (partial)
||ads.youtube.com^
||ad.youtube.com^
||googleads.g.doubleclick.net^
! Spotify ads
||spclient.wg.spotify.com^$important
||heads-fa.spotify.com^
||heads4-fa.spotify.com^
||log.spotify.com^
Blocking Mode
Set to null_ip — returns 0.0.0.0 immediately instead of timing out. Makes blocked ad images appear as blank space instead of broken image icons.
Router DNS Setting
In the router’s DHCP settings:
Primary DNS: 192.168.1.16
Secondary DNS: 1.1.1.1
All devices that connect to the WiFi automatically use AdGuard Home.
DNS Blocking Limitations
| Platform | DNS Effectiveness |
|---|---|
| Website ads | High — ad servers use separate domains |
| Spotify ads | Partial — audio ad servers can be blocked |
| YouTube ads | Very low — ads served from same domains as content |
For YouTube ad blocking use uBlock Origin (browser) or YouTube ReVanced (Android).
systemd-resolved
AdGuard Home needs port 53. On Ubuntu, systemd-resolved holds it by default.
To free it:
# /etc/systemd/resolved.conf
DNSStubListener=no
DNS=1.1.1.1 8.8.8.8
sudo systemctl restart systemd-resolved
Useful API Endpoints
All require basic auth: -u sultan:password
# Query log
curl -u sultan:pass http://192.168.1.16:3053/control/querylog?limit=50
# Stats
curl -u sultan:pass http://192.168.1.16:3053/control/stats
# Filter status
curl -u sultan:pass http://192.168.1.16:3053/control/filtering/status
# Refresh filters
curl -u sultan:pass -X POST http://192.168.1.16:3053/control/filtering/refresh \
-H "Content-Type: application/json" -d '{"whitelist":false}'
# Connected clients
curl -u sultan:pass http://192.168.1.16:3053/control/clients