Skip to content

Can an IoT Device Leak Its DNS Requests Even Behind a VPN Router?

A smart plug, camera or TV can ship with its own DNS server baked in and skip the one your router offers. This guide explains what that means behind a VPN router, how to detect it and what you can try.

10 min readUpdated Nov 23, 2026By XPASS Editorial Team

Can an IoT Device Leak Its DNS Requests Even Behind a VPN Router?

You set up a VPN on your router, ran a leak test on your laptop and saw the expected results. Then you open the router's log one evening and notice that a smart plug, a camera or the living room television is sending DNS questions to a resolver address you never configured. How is that possible when the router hands out its own DNS server to every device? The short answer is that handing out an address is only an offer. A device that has a different address written into its firmware does not have to accept it.

This article looks at one narrow case: an IoT device with a hard-coded DNS server, and what that means behind a VPN router. It explains the concept in plain language, shows how to detect it with router logs and a simple test, and lists mitigations at the router level where your hardware supports them. Everything here is general guidance. XPASS has not verified any particular router model, and router firmware differs a lot, so treat the steps as a starting point and check your own router's documentation.

What a hard-coded DNS server is

DNS is the system that turns a name such as a manufacturer's cloud address into a numeric IP address. If you want the background first, read an explainer on how DNS works and the Cloudflare explainer listed in the references. Every device needs a resolver to ask, and there are three common ways it finds one.

  • It accepts the address given by the router through DHCP, the service that hands out addresses when a device joins the network. This is the normal and polite behaviour.
  • You type a resolver address into the device by hand.
  • The manufacturer wrote one or more resolver addresses into the firmware. The device uses them either always, or as a fallback when the first lookup fails.

The third case is what people mean by hard-coded DNS. Manufacturers do it for practical reasons: they want the device to work even if the home router has a broken DNS setting, and they do not want support calls. It is common in cheap cameras, smart plugs, streaming sticks, some televisions and a number of voice assistants, although whether a specific product does it is something you have to check, not assume.

The device sends a normal DNS question to that address, usually on UDP port 53, addressed to the resolver directly. The router sees an ordinary packet leaving the home network and forwards it. No setting on the router's DNS page is involved at all, because the device never asked the router.

Why this still matters behind a VPN router

It is tempting to think that a VPN router solves the problem automatically: if everything goes through the tunnel, the hard-coded lookup goes through the tunnel too. That is partly true, and the details are worth understanding because they decide how worried you should be.

Case 1: full tunnel, tunnel up

If the router sends all home traffic through the tunnel and the tunnel is working, the lookup to the built-in resolver travels inside the tunnel. Your internet provider cannot read it. The resolver you did not choose can still see the question, and the answer you receive may differ from the one your chosen DNS would give. Anything you set up on the router for DNS, such as filtering, a local name list or a private resolver, is skipped for that device.

Case 2: tunnel down

If the VPN connection drops and the router has no working kill switch for that part of the network, the same lookup leaves through your normal internet connection. Your provider can then see which names that device asks for. A router-level kill switch, which blocks traffic while the tunnel is down, is what prevents this, and it is worth checking that it covers all devices.

Case 3: some devices outside the tunnel

Many routers support rules that send only chosen devices or chosen traffic through the tunnel. If the IoT device is not on the tunnel list, its hard-coded lookups go straight out of your normal connection even when everything else is protected. This is the situation where the leak is most real.

Case 4: the device uses its own encrypted DNS

Some devices use DNS over TLS or DNS over HTTPS with a built-in provider. Those lookups are encrypted, so a simple port 53 check will not show them, but they still bypass the router's choice. RFC 7858 describes DNS over TLS, which normally uses port 853.

Situation Does the lookup use your router's DNS? Who can see the question
Device accepts DHCP DNS, tunnel up Yes The resolver the router uses, via the tunnel
Hard-coded DNS, full tunnel up No The built-in resolver, through the tunnel
Hard-coded DNS, tunnel down, no kill switch No Your internet provider and the built-in resolver
Hard-coded DNS, device excluded from tunnel No Your internet provider and the built-in resolver
Built-in encrypted DNS No The built-in provider; contents hidden from the path

Notice that the leak in the first sense, your provider seeing the question, only appears in the middle rows. The wider problem is that the device chooses the resolver, not you.

Signs that a device uses its own DNS

You rarely see a clear error. The signs are indirect.

  • A DNS leak test run on a laptop looks clean, but a device you cannot test directly still seems to reach servers you did not expect.
  • Local names stop working on one device only, for example a camera that cannot find the recorder by name, while your phone finds it fine.
  • Filtering or ad blocking you configured on the router seems to have no effect on a smart television.
  • The router's DNS log, if it keeps one, shows far fewer lookups from that device than its traffic suggests.
  • A connection or traffic list shows that device sending small packets to an outside address on port 53 instead of to the router.

None of these proves the cause on its own. They are reasons to run the checks in the next sections.

How to detect it with your router's logs

The exact menu names differ by brand and firmware, so the steps below describe what to look for, not where to click. Router settings pages usually sit at an address such as 192.168.1.1, which belongs to the private ranges described in RFC 1918.

  1. Find out whether the router keeps a DNS query log. Some firmware shows it on a status or system log page; some needs a setting turned on first; low-end models may not offer one at all.
  2. Note the IP address of the device you suspect. Look it up in the DHCP client list, where each connected device has an address and often a name.
  3. Trigger activity on that device. Open its app, restart it, or ask a voice assistant a question.
  4. Read the DNS log and look for lookups from that device's address. If your router answers them, they appear in the log. If the device uses its own resolver, you will see little or nothing from it, even though it is clearly online.
  5. If your router has a connection or traffic monitor, look for entries where the source is the device and the destination is an outside address on port 53 (or 853 or 443 for encrypted DNS). The destination address is the resolver the device chose.
  6. Write down the destination addresses. You can compare them with the DNS address your router advertises. If they differ, the device is not using what you offer.

A plain example: a home has a camera at 192.168.1.40. After a restart, the router log shows no DNS questions from that address, yet the connection list shows 192.168.1.40 sending packets to an outside address on port 53. The camera is asking its own resolver, and the router is just forwarding the packets.

If your router has no useful logs

You can still test from a computer on the same network. Open a command prompt and ask the router's address directly for a name, then ask the suspected outside resolver. Compare the answers. If a device uses its own resolver, names that only your router knows will resolve on the computer through the router and fail on the device. This is a hint, not proof.

A simple test that works without logs

A cleaner check uses a second device you control.

  1. Put a computer on the same Wi-Fi as the IoT device.
  2. Set the computer's DNS to the router address and run a DNS leak test. Note which resolvers appear.
  3. Now set the computer's DNS to a different, deliberately unusual resolver address and run the same test. This simulates what a hard-coded device does. If the test shows that resolver answering, the router forwards DNS to any outside address without interfering.
  4. Apply a mitigation (see the next section) and repeat step 3. If the router now redirects or blocks the lookup, the test will show the router's resolver or fail, and you know the rule works for devices that behave like your computer did.

This tells you whether the rule works. It does not tell you what a particular IoT device does, so combine it with the log check above. For a way to confirm that your router's tunnel and DNS cover each device, see router VPN tunnel device test and check that DNS queries follow the VPN route.

Router-level mitigations, where supported

You cannot always change the device. Most cheap IoT products offer no DNS setting at all, and firmware updates are rare. The effective place to act is the router. Not every router can do these things, and some of them can disrupt devices, so change one thing at a time and write down what you did.

Redirect plain DNS to the router

On routers that support custom NAT or firewall rules, you can capture outgoing DNS questions from the home network and redirect them to the router's own resolver, whatever address they were aimed at. The device believes it is talking to its built-in resolver and gets an answer from yours. Some firmware offers this as a switch with a name such as DNS redirect or force DNS. On firmware that allows custom rules, the idea looks like this in generic terms (syntax varies, so treat it as an illustration, not a command to paste):

  • Match: traffic coming from the LAN, protocol UDP and TCP, destination port 53, destination not equal to the router.
  • Action: redirect to the router's address, port 53.

Make sure the router's own resolver sends its queries into the tunnel, as described in VPN router DNS settings, otherwise you have only moved the leak.

Block or limit direct outside DNS

If redirection is not available, a firewall rule that blocks outgoing port 53 from the IoT devices to anything except the router forces them to fail over to the router's DNS, if the firmware falls back at all. Some devices simply stop working, which tells you something about them. Be ready to remove the rule.

Handle encrypted DNS separately

Port 53 redirection does not catch DNS over TLS, which uses port 853, or DNS over HTTPS, which looks like normal web traffic on port 443. Blocking port 853 is simple where the router allows it. DoH is harder to separate from other web traffic without a list of known resolver addresses, and not every router can manage that. Be honest with yourself about this limit.

Put IoT devices on their own network

Many routers can create a guest or separate network. Putting IoT devices there lets you apply stricter rules to them without touching your phones and computers, and it keeps them away from your main devices. Some guest networks use client isolation, which can break casting or local control, so test the function of each device afterwards. For the wider picture on smart devices and VPNs, read VPN for IoT devices.

Keep the kill switch in place

Redirection does not help if the tunnel drops and the router starts sending everything out through the normal connection. Check that the router blocks traffic when the tunnel is down, for every device including the IoT ones.

Option What it handles Main drawback
DNS redirect or force DNS Plain port 53 lookups to any address Does not catch encrypted DNS
Block outgoing port 53 except to router Plain lookups Some devices stop working
Block port 853 DNS over TLS Does not address DNS over HTTPS
Separate IoT network Applies rules to a group Local control and casting may break
Kill switch for all devices Tunnel-down leaks Internet stops while the tunnel is down

What to test after you make a change

Treat every router change as something to verify.

  1. Restart the IoT device so it asks for fresh settings.
  2. Open the app or feature that depends on it and confirm it works.
  3. Check the router DNS log again: do the device's lookups now appear?
  4. Repeat the test with your computer using an unusual resolver, as above.
  5. Check that local names and local control still work.
  6. Wait a day and look again, because some devices retry other methods after a failure.

If something breaks, undo the rule and treat the device as one that needs a different approach, such as a separate network or replacement with a product that respects the DNS setting.

Limits and what to watch for

  • A VPN does not control which resolver a device uses. It protects the path to the VPN side. The resolver choice stays with the device and the router rules.
  • Not every router supports redirection, custom firewall rules or detailed logs. Some features are available only on certain firmware. XPASS has not verified specific router models, so confirm in your router's own documentation.
  • Encrypted DNS built into a device is difficult to inspect and control.
  • Redirecting DNS can break devices that depend on a manufacturer's own resolver for special names, for example for pairing or firmware updates.
  • Blocking is not the same as protection. A device that cannot reach its resolver may simply fall back to another method.
  • Cloud-connected devices still talk to the manufacturer's servers. Controlling DNS does not hide that, and it does not make the device itself secure.
  • A router VPN is useful, but a router can still be weak at other points. See general home router security advice for the basics such as updating firmware and changing default passwords.

If a device refuses to cooperate and you do not need it, the most reliable choice is sometimes to disconnect it, replace it or leave it on a network with no sensitive devices.

Summary

A device with a hard-coded DNS server asks its own resolver instead of the one your router offers, so a VPN router does not automatically control where its lookups go. Behind a working full tunnel the question travels inside the tunnel but still reaches a resolver you did not pick, and if the tunnel drops or the device sits outside it, your provider may see the lookups. You can detect the behaviour with router logs, a connection list or a test from a second computer, and reduce it with DNS redirection, outgoing port rules, a separate IoT network and a kill switch where your router supports them. Change one thing at a time, test, and be honest about what encrypted DNS and unsupported firmware limit.

If you want a prepaid pass to test a VPN on your own devices before deciding anything about a router, you can see the options on the XPASS pricing page.

Frequently asked questions

Can a smart device really ignore the DNS server my router gives it?

Yes. Many devices accept the DNS address offered by the router, but some have a resolver address written into their firmware or a setting you cannot see. Those devices send their name lookups straight to that address, whatever the router advertises.

If my whole home goes through a VPN router, is a hard-coded DNS lookup visible to my internet provider?

It depends on how the router sends traffic. With every device routed through a working tunnel, the lookup travels inside the tunnel, but it still reaches a resolver you did not choose. If the tunnel drops without a kill switch, or if that device is excluded from the tunnel, the lookup can leave through your normal connection.

How can I tell which device is doing this?

Check the router's DNS query log if it has one, look at the destination addresses on port 53 in a traffic or connection list, or run a test from a computer that is on the same network and compare it with what the device does. Results vary by router and firmware.

Can I force every device to use the router's DNS?

On routers that support custom firewall or NAT rules, you can redirect outgoing port 53 traffic from the home network to the router's own resolver. Some firmware offers this as a ready-made option. It will not catch encrypted DNS that uses other ports, and it can break devices in unexpected ways, so test carefully.

Does a VPN fix this on its own?

No. A VPN protects the path your traffic takes, but it does not choose which resolver a device asks. The decision belongs to the device and to the rules you put on the router.

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

Device Guides

DNS Settings on a VPN Router Explained

A router that runs a VPN still has to decide who answers DNS questions. This guide shows where the setting hides, how to point it safely and how to test it.

9 min read

Device Guides

VPN for IoT Devices: Router-Based Protection

Most smart-home gadgets cannot install a VPN app, so a router is the only place to put one. Here is what that really protects, what it breaks and what to do first.

10 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