# AdGuard error while testing upstreams

**URL:** <https://forum.gl-inet.com/t/adguard-error-while-testing-upstreams/71489>\
**Category:** Router\
**Created:** [September 22, 2026, 9:37am UTC](https://forum.gl-inet.com/t/adguard-error-while-testing-upstreams/71489 "2026-09-22T09:37:57Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![charles2](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/c/9dc877/32.png) [@charles2](https://forum.gl-inet.com/u/charles2)\
**Post date:** [September 28, 2026, 8:16am UTC](https://forum.gl-inet.com/t/adguard-error-while-testing-upstreams/71489/7 "2026-09-28T08:16:15Z")

</div>

Hi,

Thank you for the update and for helping test this.

By default, AdGuard Home sends DNS queries through the VPN when a tunnel is active. In such cases, if the VPN tunnel cannot reach the upstream DNS servers configured in AdGuard Home, DNS resolution will fail.

Could you please try the following commands via SSH to force AdGuard Home to send DNS queries through the WAN only:

```auto
sed -i 's/explict_vpn/nonevpn/g' /etc/init.d/adguardhome
/etc/init.d/adguardhome restart

# To restore:
cp -r /rom/etc/init.d/adguardhome /etc/init.d/adguardhome
/etc/init.d/adguardhome restart

```

After this change, AdGuard Home will no longer send its upstream DNS queries through the active VPN tunnel and will use the WAN connection instead.  
To restore:

```auto
cp -r /rom/etc/init.d/adguardhome /etc/init.d/adguardhome
/etc/init.d/adguardhome restart

```

---

_[View the full topic](https://forum.gl-inet.com/t/adguard-error-while-testing-upstreams/71489)._
