# Bug: Network Quality passes AdGuard Home per-domain upstream entries to dig unparsed

**URL:** <https://forum.gl-inet.com/t/bug-network-quality-passes-adguard-home-per-domain-upstream-entries-to-dig-unparsed/73358>\
**Category:** VPN, DNS, Leaks\
**Created:** [November 27, 2026, 2:51pm UTC](https://forum.gl-inet.com/t/bug-network-quality-passes-adguard-home-per-domain-upstream-entries-to-dig-unparsed/73358 "2026-11-27T14:51:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hashier](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/hashier/32/34844_2.png) [@hashier](https://forum.gl-inet.com/u/hashier)\
**Post date:** [November 27, 2026, 2:51pm UTC](https://forum.gl-inet.com/t/bug-network-quality-passes-adguard-home-per-domain-upstream-entries-to-dig-unparsed/73358/1 "2026-11-27T14:51:39Z")

</div>

**Device:** GL-MT6000 (Flint 2)  
**Firmware:** 4.11.3  
**Packages:** gl-sdk4-network-quality git-2026.295.26258-1103a6f-1, AdGuard Home 0.107.73

**Setup:**

- AdGuard Home on, "AdGuard Home Handle Client Requests" on, upstream\_mode: parallel, DoT upstreams
- WireGuard VPN client; GL.iNet's VPN policy routes AdGuard Home's own traffic (process group 20000) through the tunnel, so the DNS providers only see the VPN exit IP
- Network Quality on (default off)

### What happens

Network Quality reads `upstream_dns` from `/etc/AdGuardHome/config.yaml` and probes each entry, plus the WAN DHCP resolvers, about once per second with `network-quality-dns-lookup <server> google.com 1 1000`, i.e. `dig @<server> google.com`.

**1. Per-domain upstream entries are passed to dig unparsed.** With these upstreams:

```auto
[//]192.168.8.1
[/lan/]192.168.8.1
[/example.com/]tls://1.1.1.1

```

dig treats the whole string as a server hostname and tries to resolve it through `/etc/resolv.conf` (the ISP resolvers). A capture on the WAN interface shows queries like

```auto
A? [//]192.168.8.1.
A? [/lan/]192.168.8.1.

```

several times per minute, each answered NXDOMAIN. Running the probe by hand:

```auto
# network-quality-dns-lookup "[//]192.168.8.1" google.com 1 1000
1 -1 dig: couldn't get address for '[//]192.168.8.1': not found

```

The intended server (192.168.8.1) is never probed.

**2. Secondary, possibly by design: the probes measure a different DNS path than the one clients use.**  
If Network Quality is meant to test the WAN uplink only, this is expected; it is still worth knowing for users who route AdGuard Home through a VPN.

```auto
Path clients use: client -> AdGuard Home -> DoT through the VPN tunnel -> upstream
Path that is probed: router -> ISP resolvers (to resolve the upstream hostname)
                     -> unencrypted UDP/53 directly over WAN -> upstream

```

For `tls://dns.quad9.net` and `tls://security.cloudflare-dns.com`, the probe skips AdGuard Home, the VPN policy and the configured encryption. As a result:

- the DNS Lookup latency shown does not describe the DNS the clients actually get,
- the upstream providers see the user's real WAN IP every few seconds, although the VPN policy is set up so they only ever see the VPN exit IP, and
- the ISP resolvers get queries every second ([google.com](http://google.com), the upstream hostnames and the unparsed entries from point 1), although AdGuard Home handles all client DNS.

### Expected

- Strip the `[/domains/]` prefix of AdGuard Home upstream entries (or skip such entries) before probing.
- Secondary: when AdGuard Home's traffic is routed through a VPN, either probe its upstreams the same way (VPN policy, configured protocol, hostnames via AdGuard Home's bootstrap DNS), or leave them out of a WAN-only test.

### How to reproduce

1. Add a per-domain upstream such as `[//]192.168.8.1` to AdGuard Home's upstream DNS servers.
2. Enable Flow Control -\> Network Quality.
3. On the router run `tcpdump -ni <wan interface> udp port 53` and watch for the bracketed names and for plain [google.com](http://google.com) queries to the AdGuard Home upstream IPs.
