what this guide covers
Set up two AdGuard Home resolvers on your local network, with the router still handling DHCP. Test DNS before changing client settings, then back up the setup and test recovery.
Use two independent hosts so DNS still works when one is stopped. Clients can use either advertised resolver; the second is not a strict standby. Test both IPv4 and IPv6.
prepare a reversible plan
- Choose two independent wired hosts. A second resolver should still work when the first host is stopped.
- Record the current router DNS settings and a way to reach its administration interface without working DNS. Keep that record outside public documentation.
- Reserve each host's local address in the router. A DHCP reservation provides durability without inventing an arbitrary static address that may conflict with another client.
- Keep one DHCP authority. Leave AdGuard Home's DHCP feature disabled when the router already serves DHCP.
- Keep a separate, working resolver path for administering the hosts during setup. Avoid making the first resolver depend on itself before validation.
- Decide whether clients will query the router's DNS proxy or query the two resolvers directly. These are different paths and need separate tests.
- Check both IPv4 and IPv6. An unfiltered alternate resolver advertised on either stack can bypass filtering.
Use a private worksheet to map HOST-A and HOST-B to their reserved addresses, interfaces, administration paths and backup destinations. Do not publish that worksheet.
install and verify adguard home
Use a supported operating system and the official AdGuard Home release for its architecture. Check the archive against the release's published checksum and signature before installing. Save the version and verification result in your private operations notes.
Install the standalone binary in its standard application directory. The supported service installation command is:
sudo /opt/AdGuardHome/AdGuardHome -s install
sudo systemctl status AdGuardHome.service
sudo systemctl is-enabled AdGuardHome.service
Complete initial setup using a trusted local administration path. Set a unique administration credential and store it in a password manager. Do not put credentials in shell history, guide files or version control.
Repeat the installation on HOST-B. Record the release used on each host so a restore can select a compatible release.
restrict listeners and set policy
Bind DNS only to the intended local-network addresses on each host. Restrict the management interface to an intended administration path. Do not use wildcard listeners, expose DNS through a router port forward, or expose the administration interface to the internet.
IPv6 needs particular care: a globally routable address on a LAN interface still needs protective router and host firewall policy. A provider-delegated prefix can change. Choose an address identity that remains durable within the delegated prefix; do not use a temporary privacy address as the resolver's identity. Recheck bindings and router advertisements after a prefix change.
Keep DHCP disabled when the router is the address authority:
dhcp:
enabled: false
Choose upstream and bootstrap resolvers deliberately, and configure private reverse lookups for the local network. Start with conservative filtering. Enable bounded query logging so you can prove the path works without retaining indefinite browsing history.
If a private mesh network is used only for administration, keep it out of DNS advertisement and DNS listener configuration unless that is a separately planned feature. Avoid changing mesh routes or resolver policy as a side effect of local DNS setup.
Inspect the actual listeners rather than relying on the configuration file alone:
sudo ss -lntup
sudo systemctl status AdGuardHome.service
Confirm DNS accepts both UDP and TCP on intended addresses, that the management interface is restricted, and that the initial setup listener is no longer exposed. Test unwanted paths from another machine; an absent listener on one host does not prove the router blocks an external path.
validate each resolver before cutover
Run direct queries from a local client. Replace the placeholders with an allowed test domain and HOST-A's intended address:
dig @EXAMPLE-IP EXAMPLE-DOMAIN A
dig @EXAMPLE-IP EXAMPLE-DOMAIN A +tcp
dig @EXAMPLE-IP EXAMPLE-DOMAIN AAAA
dig @EXAMPLE-IP EXAMPLE-DOMAIN AAAA +tcp
dig @EXAMPLE-IPV6 EXAMPLE-DOMAIN A
dig @EXAMPLE-IPV6 EXAMPLE-DOMAIN AAAA +tcp
Repeat the complete matrix against HOST-B. Query a deliberately blocked test domain and confirm the configured blocking response. Check that the query appears in the dashboard or bounded query log. An allowed lookup alone does not prove filtering is active.
Also verify:
- Normal browsing works from a representative wired client and a representative wireless client.
- Administration access remains available through its intended path.
- DNS and the management interface cannot be reached through unintended interfaces.
- The host can resolve names through the planned administration resolver path.
- Time synchronization works, since certificate validation depends on a correct clock.
- No second DHCP listener has been introduced.
During a planned maintenance window, restart the service and repeat the checks. Then reboot each resolver separately and repeat them again. Confirm reserved addresses, intended IPv6 bindings, DNS, administration and time synchronization survive.
back up configuration and state
Back up both AdGuardHome.yaml and the data directory. Protect the archive because configuration and state can contain credentials and query history. Choose a consistent capture method; for a simple maintenance-window backup, stop the service briefly and restart it even if the archive operation fails.
The following example assumes the archive's destination directory already exists with restrictive administrator-only access. Plan a unique ARCHIVE-PATH and retention outside this example:
sudo sh -c '
umask 077
systemctl stop AdGuardHome.service || exit 1
trap "systemctl start AdGuardHome.service" EXIT
tar -czf ARCHIVE-PATH -C /opt/AdGuardHome AdGuardHome.yaml data
'
sudo tar -tzf ARCHIVE-PATH
sudo systemctl status AdGuardHome.service
Use restrictive archive permissions, bounded local retention and an independently recoverable off-host copy. Validate the archive and the destination copy before calling a backup successful. Keep any backup encryption recovery material separately from the resolver and backup storage. Avoid making the resolver depend on the backup destination to start or answer queries.
Test restoration on a disposable installation. Listing an archive verifies its structure; it does not prove a complete restore will work.
make a small manual cutover
Change the router only after both resolvers pass the direct tests. Preserve address acquisition and firewall settings. Configure the chosen DNS path for both network stacks, using the two internal resolvers rather than an unfiltered public secondary. Clients may use multiple advertised resolvers rather than treating the second as a strict standby.
Reconnect or renew one pilot client's lease. Inspect its actual received resolver settings and test allowed lookup, filtering and normal browsing. In a router-proxy design, also query the router directly and confirm the resolver query logs show that path. Do not describe a direct client cutover as proven when only the router's upstream settings were checked.
During a planned test, stop HOST-A's DNS service and verify the pilot still resolves through HOST-B over each configured stack. Restore HOST-A immediately afterward. Repeat with the other resolver. Stop rollout if an address is stale, a query is refused, the alternate path bypasses filtering or failover does not work.
Expand gradually to additional clients only after the pilot passes. Keep client DNS automatic unless direct client configuration is part of your plan. Do not extrapolate one historical failover result to a changed IPv6 prefix or a changed listener.
roll back without destroying the setup
If the pilot fails, reach the router through the administration path recorded before cutover. Restore its previous IPv4 and IPv6 resolver settings. Keep its DHCP authority, address acquisition and protective firewall settings intact.
Renew leases or reconnect affected clients, then verify the prior DNS path and normal browsing. Leave the validated AdGuard configuration and backups available for diagnosis. Deleting configuration is unnecessary for rollback.
recover a failed resolver
- Install a compatible operating system and official AdGuard Home release; verify the release again.
- Restore the reserved local address and intended host identity from your private worksheet.
- Stop AdGuard Home and restore the configuration and data from a validated archive with restrictive permissions.
- If the IPv6 prefix changed, update the intended binding before starting the service. Do not restore a stale address blindly.
- Install or enable the supported service and start it.
- Repeat the direct UDP, TCP, filtering, listener, administration and reboot checks.
- Repeat the pilot and failover checks before relying on the restored resolver for all clients.
If local backups are unavailable, recover the off-host copy and its separately stored decryption material first. Restore into a staging location rather than overwriting live state before validating the archive.
keep the evidence current
Record what you actually checked and when in private operations notes. Separate configured state from observed behavior. Revalidate after router changes, address or prefix changes, upgrades and restoration. A stale router value can leave one network stack working while the other silently loses redundancy.