Skip to content

Can a Local Security App Change VPN DNS Settings Without Warning?

Some security apps quietly route DNS through their own filter, even while a VPN is connected. Here is how to notice it, check it and fix it without removing protection.

10 min readUpdated Nov 25, 2026By XPASS Editorial Team

Can a Local Security App Change VPN DNS Settings Without Warning?

You connect your VPN, open a DNS leak test and see a resolver you did not expect. Perhaps it belongs to your internet provider, perhaps it carries the name of your antivirus vendor, and perhaps websites suddenly load slowly or not at all. You did not change any DNS setting. The likely suspect is a local security app, such as an antivirus suite, a web shield, an endpoint protection agent or a DNS-filter app, that quietly redirected name lookups for its own purposes.

This article is about that narrow situation. It explains why security apps touch DNS, how the symptoms look, how to see which DNS your device actually uses, how to compare the device with and without the app's features, and how to adjust the single feature at fault instead of removing protection. If your problem is that the antivirus stops the VPN from connecting at all, start with antivirus blocking a VPN instead, because that is a different fault.

Why a security app has any reason to touch DNS

DNS is the step where a name such as example.com becomes an address. It happens before almost every connection, which makes it a convenient place to stop trouble early. A security product that can see or steer DNS can refuse to resolve a known phishing domain or a known malware server before your browser ever reaches it. For a vendor, that is a cheap and effective control, so many products include it.

There are a few common ways a security app does this. These are general patterns; which ones your product uses, if any, depends on the product and its version.

  • A local DNS proxy. The app listens on the device and points the network adapter at itself, for example at a loopback address. It then forwards your lookups to its own cloud resolver after filtering them.
  • A cloud resolver setting. The app changes the DNS servers on your adapters to the vendor's filtering servers.
  • Encrypted DNS inside the app. The app, or the browser it integrates with, sends lookups over DNS over HTTPS (RFC 8484) to a resolver chosen by the app, which may ignore the system setting.
  • A network driver or filter. The app sits in the network path and inspects or redirects DNS packets (normally on port 53) without changing any visible setting.
  • Managed policy. On a work device, an endpoint protection agent may apply DNS rules from an administrator, and those rules can be reapplied after every change.

A VPN, in contrast, usually tells the device to send its lookups through the tunnel to a DNS server chosen for the connection. Two components now want to decide the same thing. When the security app wins, the VPN is connected but your lookups take a different road. For a general overview of the idea, see the VPN and DNS security article.

What the symptoms look like

Because DNS sits underneath everything, the symptoms are varied. None of them proves the security app is responsible, but together they form a pattern worth testing.

  • A DNS leak test shows an unexpected resolver while the VPN is on. This is the clearest sign. The resolver may belong to your internet provider, to a public resolver, or to the security vendor.
  • Websites fail to load but the VPN shows as connected. Pinging a raw IP address works, while a name does not. That points at name resolution rather than the tunnel. The guide on VPN DNS not working covers that failure more broadly.
  • Some sites open and others do not. A filter may be blocking categories of domains or domains it considers risky. Sometimes the blocked page says so, and sometimes it simply times out.
  • Everything is slower right after connecting. The first lookups are going to a distant or overloaded resolver, or an extra proxy hop has been added.
  • Internal or work names stop resolving. A security app that forces its own resolver can stop a company name, a printer name or a home server name from resolving, because the outside resolver does not know it.
  • The behaviour changes after an update. The setting was fine for months, then a product update or a licence renewal turned a DNS feature on.
  • A notification or a changed DNS entry shows up in the app. Some apps display "DNS protection enabled" or "safe browsing active" somewhere in their dashboard, often not in the main screen.

One caution. These symptoms also happen for unrelated reasons, such as a router that blocks external lookups, a stale DNS cache or a poor Wi-Fi network. The comparison steps below are what separate the causes.

Step 1: see which DNS your device actually uses

Before you change anything, collect facts. Do this with the VPN connected, because the answer you want is what the device uses during the VPN session. The commands below read settings only; they do not change anything.

On Windows

Open PowerShell or Command Prompt and run:

ipconfig /all

Look through each adapter. Note the "DNS Servers" line on the VPN adapter and on your Wi-Fi or Ethernet adapter. In PowerShell, a tidier list comes from:

Get-DnsClientServerAddress

To test a real lookup and see which server answered, run:

nslookup example.com

The first lines show "Server" and its address. If that address is a loopback address such as 127.0.0.1 or an address you do not recognise, a local proxy or a different resolver is answering. A loopback address is not automatically a problem, because some legitimate tools use it, but it tells you something on the device is handling lookups.

On macOS

Open Terminal and run:

scutil --dns

The output lists resolvers in order, each with its nameserver addresses and the network interface it belongs to. The first resolver is normally the one that applies to ordinary lookups. Compare it with the address you expect for the VPN.

On Android and iPhone

Mobile systems show less. On Android, check the VPN or Private DNS settings and look inside the security app for a "safe browsing", "web protection" or "DNS" feature. Some of these work by creating their own local VPN connection, which can compete with your real VPN, because a phone normally runs only one VPN connection at a time. That is worth knowing: if a security feature on a phone says it uses a "local VPN" or "VPN-based protection", turning it on can replace your other VPN. If you see your VPN disconnect when a filter starts, this is a likely reason.

Add an outside view

Run a DNS leak test from a browser, with the VPN connected. It reports which resolvers answered the test queries. Write down what it shows, for example "resolver owned by my internet provider" or "resolver named after my antivirus vendor". The guide on how to test for VPN DNS leaks explains how to read the result and how to repeat it reliably. Keep the numbers, because you will compare them later.

Step 2: compare with and without the security app features

Now narrow the cause. The aim is a controlled comparison, changing one thing at a time. You are not removing protection, only switching one feature for a short test and switching it back.

  1. Baseline. Disconnect the VPN, run the DNS checks, and note the DNS servers on your active adapter. This is what your device uses without the VPN.
  2. VPN only. Connect the VPN. Run the DNS checks and a leak test. Note the result.
  3. Find the feature. Open the security app and look for sections with names like DNS protection, encrypted DNS, web shield, web protection, safe browsing, network protection, secure DNS, parental or family filter, or "Protect my network". Write down which of these are on.
  4. Switch off one feature for a few minutes. Choose the most likely feature, such as DNS protection or the web shield, and pause only that one. Do not pause the real-time file scanner, the firewall or the anti-malware engine.
  5. Reconnect the VPN and repeat the checks. Disconnect and connect again so the VPN has a chance to apply its settings from a clean state.
  6. Switch the feature back on. Note exactly what changed in the results.

The pattern you are looking for is simple. If the leak test shows the expected resolver only when one specific feature is off, you have found the cause. If nothing changes, the security app is probably not responsible, and you should look at the router, the network, the browser or the operating system instead.

Be careful with how long you leave a feature off. A few minutes for a test is a reasonable approach. Leaving it off for the day is not, and you should not do the test on a network you do not trust.

Step 3: adjust the feature, do not remove the protection

Once you know which feature is responsible, the goal is a setup where both tools do their job. These options are listed from least to most intrusive.

  • Turn off only the DNS part. Many suites separate "DNS protection" or "secure DNS" from the rest of the web shield. If you only want your VPN to handle DNS, switching off that one option keeps file scanning, ransomware protection and the firewall running.
  • Add the VPN app to exceptions. Find the exclusions, trusted applications or allowed list and add the VPN client and, if offered, its network adapter. Make sure you add the file from the official download or the app store, as you would for any exception.
  • Switch the encrypted DNS source. If the product sends its own DNS over HTTPS, see whether it can follow the system setting, or switch to "use system DNS" if it offers that choice.
  • Choose a compatible mode. Some products have a "compatible with VPN", "VPN mode" or "do not interfere with other VPNs" option. Use it where it exists.
  • Use the web protection in the browser only. If the security app can filter pages through a browser component rather than at the network level, the DNS path is left alone. This is a trade-off, because a browser-only filter covers less than a network-wide filter.
  • Update the app. Vendors fix VPN compatibility bugs over time. A newer version of the security app, or of the VPN client, may handle the conflict better. Install updates from the official source.
  • Contact the vendor's support. Ask a plain question: "Does your product redirect or inspect DNS, and how do I set it to leave a VPN's DNS alone?" The answer is more reliable than a guess.

What to avoid is also clear: do not uninstall the security app as the first move, and do not tell it to ignore everything. A permanent switch-off of protection is a worse outcome than a slightly imperfect DNS setup, and you should not make it as a shortcut. If a feature cannot coexist with your VPN and you need both, a vendor support request or a different security product is a safer route than turning protection off for good.

Step 4: re-run the leak test and make it stick

After you change the setting, repeat the whole measurement with the same method:

  1. Fully disconnect the VPN, wait a few seconds, and connect again.
  2. Run ipconfig /all, Get-DnsClientServerAddress or scutil --dns and check the DNS servers on the VPN adapter.
  3. Run a lookup, for example nslookup example.com, and read the "Server" line.
  4. Run the DNS leak test again and compare it to your earlier notes.
  5. Open two or three of the sites that failed before and see that they load.

A good result is one where the resolver you see is the one you expect for the VPN session, and the sites load. Keep in mind that "expected" depends on your setup. Some people intentionally use a local filtering resolver or a split DNS arrangement for work, and for them the right answer is different.

To make the fix last, write down what you changed in a note. Repeat the check after a major update of the security app or the operating system, and after a licence renewal. If you use a work laptop, ask your administrator before you change anything, since a central policy may overwrite your setting, and you should not try to override a policy you were not given the right to alter.

A plain example

Mei uses a laptop with a well-known antivirus suite. She connects her VPN at a cafe, opens a DNS leak test and sees a resolver owned by her internet provider. That makes no sense to her, because the VPN says it is connected.

She runs ipconfig /all. The VPN adapter lists a DNS server, but her Wi-Fi adapter points at 127.0.0.1. She runs nslookup example.com and the answering server is a loopback address, so something on her own laptop is handling lookups.

In the antivirus dashboard she finds a feature named "DNS protection" under network settings, enabled by the last update. She turns that one option off for five minutes, leaves the real-time scanner and firewall on, reconnects the VPN and repeats the leak test. The resolver is now the one she expects from the VPN, and the sites that failed earlier load.

She does not leave it at that. She turns the DNS protection back on, then looks for a setting that lets it follow the system DNS, and finds a "compatible with VPN" option in the same section. After enabling it, she checks again: the lookups still follow the VPN and the filter is still active in the browser. She notes the setting in her phone so she can check it after the next update.

This is only an illustration. Real products differ in names and options, and what Mei found may not match what you find.

Limits and what to watch for

  • No single answer. Each security product handles DNS differently, and names such as "web shield" or "secure DNS" mean different things across vendors. Use the names in this article as search terms, not as a promise of what your product has.
  • A leak test is a snapshot. It shows what happened during that test. Run it twice, ideally at different moments, and compare.
  • A VPN is not a complete security tool. The VPN protects the path between your device and the VPN server. A security app protects the device. They do different jobs, and neither one promises to make you anonymous or fully secure.
  • Other layers can also change DNS. Browsers with their own encrypted DNS, routers, mobile private DNS and the operating system can all do it. Test the security app first only because the symptom matched.
  • Managed devices follow the owner's rules. If your employer or school manages your device, the DNS setting may be a policy. Ask the administrator rather than trying to defeat it.
  • Trust the source of your tools. Do not install a "DNS fixer" or a cracked security tool from an unknown site. Fake tools are a real risk, so use official downloads only.
  • Hedge about the cause. If you cannot reproduce a change when one feature is toggled, say so to the support team you contact. A clear description helps them more than a guess.

Using this with your own VPN

VPNclient, the app that goes with an XPASS pass, is available for several desktop and mobile systems, and the details are on your My Pass page. Whether a particular security app changes DNS while VPNclient is connected depends on the security product and your settings, so confirm it with the steps above instead of assuming it. If you cannot explain what you see, the support contact on your My Pass page is the right place for questions about the app itself.

Summary

A local security app can change the DNS your VPN session uses, by pointing the device at its own filter, by sending encrypted DNS to its own resolver or by redirecting packets, and it often does not announce it. Look at the symptoms, list the DNS servers per adapter, run a DNS leak test with the VPN on, then compare the results with one security feature off at a time. Fix the single feature, or add an exception, rather than removing protection, and repeat the test after updates. If you want a prepaid pass to test your setup with, the pricing page explains how XPASS passes work.

Frequently asked questions

Can an antivirus or web shield really change the DNS my VPN uses?

Yes, it can happen. Some security suites include a DNS filter, a web shield or a safe-browsing feature that points the device, or a network adapter, at the vendor's own resolver or inspects DNS traffic locally. Whether yours does depends on the product, its version and which features are switched on, so check rather than assume.

How do I see which DNS server my device is really using?

Connect the VPN, then list the DNS servers per network adapter with your operating system's tools, for example ipconfig /all or Get-DnsClientServerAddress on Windows and scutil --dns on a Mac. Then run a DNS leak test and compare the resolver it reports with the one you expect.

Should I uninstall my security app if it changes DNS?

Usually no. Look for the specific feature, such as DNS protection, encrypted DNS, safe browsing or a network filter, and change that one setting or add the VPN to its exceptions. Keep the rest of the protection running.

Does a changed DNS mean my VPN is broken?

Not necessarily. The tunnel can be working normally while name lookups take a different path. It is a DNS routing question that you can test and adjust, and it is worth fixing if you expected your lookups to follow the VPN.

Will the setting come back after an update?

It can. Security apps sometimes restore defaults after an update or a policy refresh, so repeat the check after big updates and after any change to your device management settings.

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

Troubleshooting

Antivirus Blocking VPN: What to Do

Antivirus and internet-security suites can stop a VPN from connecting. Here is how to prove the antivirus is the cause, which settings to change, and what to avoid.

9 min read

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

Troubleshooting

DNS Not Working When VPN Is Connected

When the VPN says connected but pages fail with name errors, DNS is the usual suspect. Here is how to prove it, why it happens and what to change on each device.

9 min read