Skip to content

How Can You Check Whether DNS Queries Follow Your VPN Route?

A leak test page tells you who asked. This guide shows how to follow the route itself: which adapter, which resolver address and which path your DNS questions actually take.

10 min readUpdated Nov 4, 2026By XPASS Editorial Team

How Can You Check Whether DNS Queries Follow Your VPN Route?

Most people check their DNS by opening a leak test page and reading a list of addresses. That answers one question: which resolver handed the test server a question. It does not show the road that question took to get there. A DNS query is a small message, and like any other traffic it leaves your device through one network adapter, follows one route and arrives at one resolver. If you want to be sure it went through your VPN, you need to look at that road directly.

This article is about the route, not the leak test. For a method built around a test page and a baseline, read how to run a VPN DNS leak test. Here we go one level lower: reading the resolver addresses your device is configured to use, checking which adapter and route reach them, watching a real query and deciding what the evidence means. The tools are ordinary ones that come with your operating system.

What "following the route" really means

Two separate decisions control a DNS lookup on your device.

  1. Which resolver is asked. Your system has a list of resolver addresses, often one list per network adapter. The operating system, or the app, picks an address from that list.
  2. Which road the message takes to reach that address. Once the address is chosen, the routing table decides which adapter sends the packet. If a route for that address points into the VPN tunnel, the message travels inside it. If not, it leaves through your ordinary connection.

A query "follows the VPN route" when both decisions line up: the resolver address is one the VPN gave you (or one you deliberately chose), and the route to that address goes through the tunnel adapter. If the first decision is right but the second is wrong, a resolver that should be reached privately may be reached over the open network. If the first is wrong, the question goes to your provider's resolver even though the tunnel is up.

For the background on how a lookup works step by step, see how DNS works. The formal description is in RFC 1035, and the plain-language version is in the Cloudflare Learning page on DNS.

Step 1: find the resolver addresses your device is using

Start with what the system is configured to ask. Do this twice: once with the VPN off and once with it on. The difference between the two lists is the first piece of evidence.

  • Windows. Open a terminal and run ipconfig /all. Look at each adapter. The VPN adapter should list its own "DNS Servers" entries. Your Wi-Fi adapter lists the ones from your router.
  • macOS. Run scutil --dns in Terminal. The output lists numbered resolvers with the interface each is tied to and the order they are tried in. Reading the order matters, because the first matching resolver usually wins.
  • Linux. On many systems resolvectl status shows resolvers per link. On others, look at the resolver configuration file for your setup.
  • Android and iPhone. The operating system does not show this list in a simple way. Use the VPN app's own settings and the checks in step 4 instead of the system view.

Write down the addresses. Many VPN services give out a private address as the resolver, one that sits inside the tunnel and cannot be reached from the open internet. Private ranges are defined in RFC 1918, such as addresses starting with 10, 172.16 to 172.31, or 192.168. If you see a private address on the VPN adapter, it often means the resolver lives inside the tunnel. Be careful, though: your home router also uses a private address, usually starting 192.168. Which adapter an address belongs to matters more than how it looks.

Step 2: check which adapter reaches the resolver

An address on its own tells you little. You need to know which adapter sends packets to it.

  1. On Windows, run route print and look at the rows that match the resolver address. On macOS or Linux, use netstat -rn or ip route.
  2. For a specific address, ask the system directly: route get ADDRESS on macOS, ip route get ADDRESS on Linux. The answer names the interface that would be used.
  3. Compare the interface name with your list of adapters. The tunnel adapter usually has a recognisable name, such as one starting with utun, tun, wg or a name containing the VPN app.

What you want to see:

  • A resolver address belonging to the VPN is reached through the tunnel adapter.
  • A resolver address belonging to your router is reached through the Wi-Fi adapter, and it is either absent while the VPN is on or deliberately kept (see the limits section).

Do not worry if the full routing table looks overwhelming. Many VPN apps install a route that sends nearly everything into the tunnel, with a few exceptions for the VPN server itself and for your local network. You are looking only at the rows that match the resolver addresses from step 1.

Step 3: watch a real query and see who answers

Configuration says what should happen. A live query shows what does.

  1. Pick a name that is unlikely to be cached, such as a made-up subdomain of a domain you control. If you do not control a domain, any rarely visited site works, but a cached answer proves nothing about the route.
  2. Run nslookup name or dig name. Both print a "Server" line or equivalent showing which resolver answered.
  3. Compare that address with the list from step 1. If it is the VPN's resolver, the system chose the right address. If it is your router or provider, the question went the old way.

You can also point the tool at a specific resolver: nslookup name ADDRESS or dig @ADDRESS name. This is useful in two cases. When you point it at the VPN's resolver and it answers, the route to that resolver works. When you point it at your provider's resolver while the VPN is on, you can see whether that resolver is still reachable from your device, which tells you whether a fallback path exists.

A caution about command-line tools: they ask the resolver you tell them about, and on some systems they do not use the same path as your browser. A clean nslookup result is evidence, not a verdict. Keep going to step 4.

Step 4: capture the traffic if you want direct proof

A packet capture is the most direct way to follow a query, because it shows the message itself leaving through an adapter. It needs a little skill and it is optional, but it settles arguments.

  1. Install a capture tool you trust, such as a well known open source packet analyser, or use the one already on your system.
  2. Start a capture on your normal Wi-Fi or Ethernet adapter and filter for DNS, which uses port 53 over plain UDP or TCP.
  3. With the VPN connected, open a new private browser window and visit a few sites you have not visited recently.
  4. Look at the capture. If plain DNS questions from your device appear on the Wi-Fi adapter, they are leaving outside the tunnel. If the capture is quiet apart from encrypted tunnel traffic, the questions are going elsewhere.
  5. Start a second capture on the tunnel adapter. Plain DNS questions appearing there, going to the VPN's resolver, are the questions travelling inside the tunnel.

Two details help you read the results. First, a capture on the physical adapter sees the tunnel's encrypted packets as unreadable data going to the VPN server. That is normal and is not DNS. Second, encrypted DNS (DNS over HTTPS or DNS over TLS) does not show up as plain port 53 traffic at all. If your browser or system uses it, your capture may look quiet even though DNS is leaving the machine on a different port. For how those fit with a VPN, see the article on DNS over HTTPS and VPNs. Only capture traffic on devices and networks you own or have permission to examine.

Step 5: check the paths that quietly bypass the tunnel

Most "wrong route" results come from a small list of causes. Check each one.

Cause How it shows up What to check
Browser with its own secure DNS Browser lookups reach a resolver you did not expect, while other apps are fine The browser's DNS setting; see VPN and browser DNS
IPv6 resolver left on the Wi-Fi adapter IPv4 looks clean, IPv6 shows your provider The adapter's IPv6 resolver entries and routes
Leftover resolver on another adapter Two lists in step 1, the old one still tried first Resolver order, adapter priority
App excluded from the tunnel Only that app asks outside The app's split tunneling setting
Split DNS by design Some names go to a different resolver on purpose Whether you set it up; see split DNS with a VPN
Network hijacking or redirecting DNS Even a query to a chosen resolver is answered by someone else Compare results on another network

If you find one of these, change one thing at a time and repeat steps 1 to 3. That way you know which change fixed it.

A plain example

Nok connects her laptop to a VPN at a hotel and wants to know whether her lookups are going through it. She starts with ipconfig /all. With the VPN off, the Wi-Fi adapter lists the hotel's resolver. With the VPN on, a new adapter appears with its own resolver, a private address. The hotel's resolver is still listed on the Wi-Fi adapter.

Next she runs route print and finds that traffic to the VPN's resolver address goes through the new adapter. So far, good. She runs nslookup for a name she has not used before. The Server line shows the VPN's resolver. Her configuration and her live query agree.

Out of curiosity she opens her browser and the same site. A quick check of the browser settings shows it uses its own secure DNS provider, so browser lookups go to that provider, not to the VPN's resolver. That is not a failure of the VPN, but it is a different route from the one she assumed. She decides she wants her browser to follow the system resolver and changes the setting. After that she repeats the nslookup and a fresh page visit, and the evidence matches in both places.

The lesson is that one check is a sample. The route is confirmed when configuration, a live query and the app you actually use all agree.

Repeat the check at the moments routes change

Routes are set when the VPN connects and can change afterwards. Repeat the quick version of steps 1 to 3 in these situations.

  • After switching from Wi-Fi to mobile data or to another Wi-Fi network.
  • After the computer wakes from sleep, especially in the first minute.
  • After reconnecting or changing the server location in the VPN app.
  • After a system update or an app update.
  • After turning split tunneling, IPv6 or a browser DNS option on or off.

Keep a short note of the "good" output from your own device, such as the resolver address and the interface name. Next time you only need to compare.

Limits of what these checks prove

  • The route tells you where a question leaves. It does not tell you what the resolver at the other end does with it. That depends on the provider's own practices.
  • A private resolver address inside the tunnel is a sign the resolver is on the VPN side, but only the provider can confirm how it is run.
  • Command-line tools and packet captures are snapshots. A good result now does not guarantee the next minute.
  • Encrypted DNS in a browser or an app can send questions in a way a simple port 53 filter does not see.
  • Some networks, such as workplace or school networks, deliberately set their own resolvers. This guide is about understanding your own device, not about getting around a network's rules.
  • A VPN does not make you anonymous. Even with DNS on the right route, the sites you visit and the accounts you sign in to still know who you are.

If a check shows a route you did not expect and you are not sure how to fix it, the guide to checking whether your VPN is working covers the basic checks, and support can look at the output you collected.

Summary

To check whether DNS queries follow your VPN route, look at two things: which resolver address your device uses and which adapter reaches that address. Read the resolver list with the VPN off and on, confirm the route to the resolver goes through the tunnel adapter, run a live lookup to see who answers and, if you want proof, capture the traffic on both adapters. Then look for the usual bypasses: browser DNS, IPv6, leftover adapters and excluded apps. Repeat the check whenever the network changes.

If you want a prepaid pass to run these checks on your own devices, the pricing page lists the options.

Frequently asked questions

What does it mean for a DNS query to follow the VPN route?

It means the DNS question leaves your device through the VPN tunnel adapter and reaches a resolver on the other side of the tunnel, instead of leaving through your normal Wi-Fi or mobile connection to the resolver your network provided.

Is a DNS leak test page enough to prove the route?

It is a good first check, but it only shows which resolver delivered the question to the test server. It does not show which adapter the question left through. Checking the route table, the configured resolver addresses and, if you are comfortable, a packet capture gives direct evidence.

Which tools can show where DNS questions go?

Built-in tools are usually enough: nslookup or dig to see which server answered, ipconfig /all or route print on Windows, scutil --dns and netstat -rn on macOS, and resolvectl status and ip route on many Linux systems. A packet capture tool filtered for port 53 shows the traffic itself.

Why would DNS use a different path from my other traffic?

Operating systems, browsers and apps choose resolvers separately from how they choose a route for data. A browser with its own secure DNS, a leftover resolver on another adapter, an IPv6 path or an app excluded from the tunnel can each send DNS questions a different way.

If the route looks right, can I stop checking?

Not entirely. Routes can change when you switch networks, wake the computer or reconnect. Repeat the check after those events and after app or system updates.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Need a VPN for a short trip or a busy month?

XPASS sells prepaid passes for a set number of days. You pay once and nothing renews automatically.

See passes

Keep reading

VPN Security

How to Run a VPN DNS Leak Test

A leak test is only useful if you take a baseline first and read the results correctly. This method covers before-and-after checks, repeat tests and what the output means.

10 min read

VPN Security

Split DNS with VPNs: What It Means

Split DNS lets a device ask one resolver about private names and another about everything else. Here is how it works, where it helps, and how to check it.

9 min read

VPN Security

What Is a DNS Leak?

A DNS leak happens when your device asks for website addresses outside the VPN tunnel. Here is why it happens, how to test for it, and what to do about it.

10 min read