Insights
WireGuard DNS: How to choose and check your resolver
Learn how WireGuard handles DNS, how to set a resolver with wg-quick on Linux, and how to check whether your system and browser use it.

On this page
WireGuard encryptsOpens in a new tab Domain Name System (DNS) lookups that go through the tunnel, but it doesn't pick your DNS server. On Linux with wg-quick, set DNS in the client's [Interface] section and check that the tunnel can reach that server.
In short:
- Tunnel encryption. WireGuard protects lookups carried inside the tunnel.
- Resolver choice. Pick a DNS server that answers the names you need.
- Separate checks. Test the resolver, system and app separately.
What your DNS setting changes
A resolver is the server that answers your DNS lookup. The client's DNS setting selects a resolver, while the device's routing rules decide how packets get there. Those are separate choices: pointing the client at a resolver doesn't put traffic to it inside the WireGuard tunnel.
How to choose a resolver and give it a route
Make changes only on a client and resolver you administer. Save a copy of the working profile so you can restore it if lookups stop working.
1. Pick a resolver that answers the names you need.
Include any private names your devices use. If a WireGuard peer serves DNS, use that peer's tunnel address as the resolver address.
2. Set the DNS field in your Linux wg-quick profile.
Replace RESOLVER_TUNNEL_IP with the peer's tunnel address. Edit the existing [Interface] section and keep its other settings.
[Interface]
DNS = RESOLVER_TUNNEL_IP
3. Check the route after you activate the profile.
Look up the route to the resolver's address on the client. It should select the WireGuard interface if you want those lookups to use the tunnel. Check this even with a split tunnel, where only selected destinations use WireGuard. A different DNS manager can change how the profile's DNS setting is applied, so check the active resolver too.
In the web portal, open My Network → Tunnel List. Create a tunnel if needed, then open its Tunnel Settings → Configuration and select Download → Download Standard Config. Keep the file privateOpens in a new tab and activate it in WireGuard on Windows or Linux. Use the checks below to see which resolver is in use.
How to check which resolver you use
Have the intended resolver address, a full DNS name it should answer, the expected tunnel interface and the app you want to check. Run these read-only checks on a device and against a resolver you're authorized to use.
1. Query the intended resolver directly.
Use a DNS lookup tool that lets you specify a server. Enter the resolver's address and the full name. The expected record shows that the resolver answers when asked directly. If the query times out, check the route and whether the resolver accepts queries over the tunnel before changing system DNS settings.
2. Run a normal system lookup.
On Linux with systemd-resolved, replace FULL_DNS_NAME with the same name and run the command without an interface override.
resolvectl query FULL_DNS_NAME
Read the lookup protocol and network interfaceOpens in a new tab if reported. For an answer from the network, the expected record and DNS link show that the system found the answer on the link you intended. If the direct query worked but this one fails or reports another link, check the system's DNS selection. The link isn't a packet trace and doesn't identify the exact server if several resolvers are set for that link.
3. Check the name and DNS setting in the app.
Look up the same name in the app and check whether the app uses its own encrypted DNS provider. For example, Firefox's Custom protection settingOpens in a new tab uses the provider you choose and can switch to a backup if that provider has trouble. If the system uses the expected link but the browser selects a different provider, changing WireGuard's DNS field alone won't bring the browser into line with your policy. Using a different resolver doesn't by itself mean the browser's packets went outside the tunnel.
Repeat with an uncached name you control when you need a fresh lookup. The app check passes when the name resolves and its DNS settings match your policy. A successful app lookup alone doesn't prove which server answered or rule out bypass by other apps.
Who can still see your lookups
The resolver sees the name you ask for, even when the query reaches it through WireGuard. If the tunnel peer forwards the lookup to an upstream resolver, that's a separate connection. Check who receives the name and how that leg is protected instead of assuming the tunnel covers the whole trip.
Where doxx.net fits. doxx.net encrypts DNS lookups and blocks unwanted domains. If you want managed DNS, download the appOpens in a new tab and don't assume the Standard Config applies the same DNS controls.