brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: the AdGuard Home upstream mode decides which DNS server answers

Network and access
~/tips/tip-adguard-home-upstream-mode

dns:

Pick between load balancing, parallel and fastest address when you have several upstreams.

With more than one upstream DNS server in AdGuard Home, there is a setting that decides how they are used. The default is fine, but it helps to know what the other two do.

In the web UI it sits below the upstream list in DNS settings. In AdGuardHome.yaml it is one line:

dns:
  upstream_mode: load_balance

load_balance is the default. Queries go to one server at a time, and the docs say it uses a weighted random choice that favours servers with fewer failures and faster answers.

parallel asks all upstreams at once and takes the first reply. Answers can be a little quicker, but every lookup now hits every provider, so each of them sees all your queries. That cancels out a reason some people spread queries in the first place.

fastest_addr also queries all of them, then checks which returned IP address responds fastest and gives that one. It can help for big sites with many servers, and it adds a delay of its own while it measures.

For a home network I’d stay with load_balance. If you change it, run a few lookups afterwards and look at the response times in the query log, because the difference is easier to see there than to feel. And edit the YAML only with AdGuard Home stopped, or it will overwrite your change.

Further reading: AdGuard Home configuration

Going deeper: Guide: AdGuard Home with Unbound: resolve DNS yourself instead of asking Cloudflare or your ISP

More Network and access tips scp -3 alice@server-a:/var/backups/db.sql.gz bob@server-b:/srv/restore/ tailscale exit-node suggest tailscale lock sign nodekey:1abddef1 tlpub:abcdef12 wg genpsk > peer1.psk Table = off All Network and access tips (163) All topics

Link