Can an Incorrect MTU Make DNS Queries Fail Intermittently?
Most DNS answers are tiny, but some are large enough to be split or dropped when the MTU is wrong. Here is why that causes random lookup failures and how to test it.
10 min readUpdated Nov 4, 2026By XPASS Editorial Team

You open a website and it loads instantly. You refresh a minute later and the browser says it cannot find the server. You try again and it works. Another name, say a mail service or a company portal, fails every third time. Nothing in the VPN app says anything is wrong, and the connection looks healthy. Failures that come and go without a pattern are some of the most irritating network problems, because there is nothing steady to look at.
One cause that is easy to overlook is the packet size, known as the MTU. It sounds like a setting that should only affect large downloads, not a tiny question such as "what is the address of this website?" Yet the answers to those questions are sometimes larger than people expect, and when a path cannot carry them, the lookup quietly times out. This article explains why that happens, how to recognise it, how to test it with tools already on your computer, and what to do about it. For the general MTU background, see the companion article on VPN MTU problems. Here we stay on the narrow question of DNS.
How a DNS lookup works in a few lines
When you type a web address, your device asks a DNS resolver to translate the name into an IP address. The classic exchange is one small question and one small answer, each sent as a single UDP packet. If you want the full picture, the article on how DNS works walks through it, and the Cloudflare explainer on what DNS is gives a good overview.
UDP is a "send it and hope" transport. There is no handshake and no built-in resend. If the question or the answer vanishes, the device simply waits for a timeout and then asks again, often after a second or more. That waiting is what you experience as a page that hangs and then suddenly loads, or a lookup that fails outright after a few attempts.
The original DNS specification, RFC 1035, limited ordinary UDP answers to 512 bytes. If an answer did not fit, the server marked it as truncated, and the client was expected to repeat the question over TCP. Later extensions allow larger UDP answers when both sides agree, which is convenient, but it means answers can now exceed the size a single network packet can carry.

Why most lookups are fine and a few are not
A DNS answer is not always tiny. Its size depends on the name you ask about:
- A simple name with a single address record produces an answer of well under 100 bytes.
- A name with several addresses, or with both IPv4 and IPv6 records, is longer.
- A name that is an alias for another alias for a final name carries the whole chain.
- Answers that include security data, such as signatures used by DNSSEC, can be much larger than the plain records.
- Text records used for email and domain checks can be long, because they hold whole policy strings.
The result is a mixed picture. Everyday names produce small answers and work every time. A few names produce large answers and fail often. From the outside it looks random, because you do not know the size of an answer before you ask. That is the first clue: if the failures follow particular names rather than particular moments, size is worth suspecting.
What MTU has to do with it
MTU, the maximum transmission unit, is the largest packet a network link will carry in one piece. Ordinary Ethernet and Wi-Fi commonly use 1500 bytes, and some connections use less. A VPN takes each packet, encrypts it and wraps it inside another packet addressed to the VPN server. That wrapper uses space, so the packet inside the tunnel has to be smaller than the link allows. The earlier article on what a VPN protocol is explains why wrappers differ, and the numbers vary by design and by IPv4 versus IPv6.
A small DNS answer, say 100 bytes, fits under any sensible MTU. A big answer of 1,400 or 1,800 bytes may not. When an answer is bigger than the path allows, one of three things happens:
- The sender splits it into fragments. Each piece travels separately and is rebuilt at the other end. This works only if every fragment arrives.
- The sender marks it "do not fragment". A router that cannot carry it should drop it and send back a notice saying it was too big. The sender then retries with a smaller size. This feedback process is Path MTU Discovery, described in RFC 1191.
- The notice never arrives. Some firewalls and routers block those notices, or discard fragments altogether. The big answer disappears with no explanation, and the client only sees silence.
The third case is the troublesome one. Small packets keep working, so the connection looks alive, but any lookup that needs a large reply times out. Engineers call this a black hole.
Why a VPN makes it more likely
A VPN does not create the weakness, but it reduces the margin. Without it, a 1,400-byte answer fits easily under 1500. Inside a tunnel with an 80-byte wrapper, the available size is closer to 1,420, and on a path that is already reduced, such as one using PPPoE, which commonly has an MTU of 1492, there is even less room. Answers that were fine before now sit right on the edge.
Several other VPN-related details add to the picture:
- The DNS server you use may change when the VPN connects, so the answers come over a different path with different handling of fragments.
- Fragments pass through more devices, and a single device that drops them is enough to break the lookup.
- If your device sends the question through the tunnel but the answer comes back over a path with a smaller limit, only the answer is affected.
- Mobile networks, hotel networks and some home routers handle fragments differently, so the same VPN may behave well on one network and badly on another.
If the VPN does not appear to provide any DNS answers at all, a different article applies, so read why VPN DNS is not working first. The intermittent pattern described here is more specific.
Symptoms that point to MTU rather than something else
No single sign proves the cause, but several together are a strong hint:
- Failures depend on the name. The same name fails again and again while others never fail.
- A second try often works. The client retries with a smaller size or falls back to TCP, and succeeds, which is why refreshing helps.
- Ping works, large pages stall. Small requests are fine, while big responses hang.
- It appears only with the VPN on, or only on one particular network.
- Command line tools show timeouts for some record types. Asking for a plain address works, while asking for text or security records does not.
- Other symptoms of large packets failing. Uploads that stall, or secure shell sessions that freeze when a lot of text appears.
If, instead, every lookup fails all the time, the cause is more likely a wrong DNS server, a blocked port or a connection that is not really up. MTU gives intermittent, size-dependent trouble.
A step-by-step way to test it
You do not need special software. Change one thing at a time and write down what you see.
Step 1: Check that the pattern is real
Pick two or three names that fail and two or three that never fail. Look each one up several times in a row. Windows, macOS and Linux all have nslookup, and many systems also have dig. If the failures follow the names rather than the clock, you are on the right track.
Step 2: Compare UDP and TCP
If you have dig, ask the failing name once normally and once with the TCP option, which sends the question over TCP. On many systems that looks like dig +tcp example.com. TCP has its own handshake and resend logic, and its segments adapt to the path. If TCP works every time while plain lookups fail now and then, packet size is a strong suspect. If both fail, look at the DNS server itself.
Step 3: Try a different DNS server
Ask the same failing name against another resolver, for example one provided by your network or a public one you trust. If a different server answers reliably, the issue may be with the first server or its path, not with your own packet size. Note that this test changes more than one factor, so treat it as a clue and not a verdict.
Step 4: Find the largest packet that crosses the path
Use the ping tool with the "do not fragment" option and an explicit payload size. The exact flags depend on the system:
| System | Example command | Notes |
|---|---|---|
| Windows | ping -f -l 1400 example.com |
-f forbids fragmenting, -l sets the payload size |
| macOS | ping -D -s 1400 example.com |
-D sets the do-not-fragment bit |
| Linux | ping -M do -s 1400 example.com |
-M do forbids fragmenting |
The payload size is not the packet size. Add 28 bytes for the IP and ICMP headers on IPv4, so a payload of 1472 corresponds to a 1500-byte packet. Start at a size you expect to work, then raise it in steps until the reply turns into "needs fragmenting", "message too long" or silence. The largest size that still works, plus 28, is your usable path size. Run the test with the VPN on and again with it off, so you can see how much room the tunnel costs. Some networks block ping entirely, in which case the test cannot tell you much.
Step 5: Repeat on another network
Connect through a different Wi-Fi network or a mobile hotspot and repeat Steps 1 and 4. If the problem follows you to every network, it is probably in the device or the VPN setup. If it appears on only one network, the router or provider is the more likely cause. The article on VPN MTU tuning goes deeper into choosing a value.
A plain example
Suppose you work from a rented apartment on a fibre line that uses PPPoE, so the link MTU is 1492. You connect the VPN. Most websites load. Your company portal sometimes shows "server not found", but a refresh fixes it. A quick check finds that the portal name has a long chain of aliases and several addresses, so its answer is much larger than a typical one.
You run dig +tcp for the portal name and it works every time, while a plain lookup fails about one time in four. A do-not-fragment ping shows that 1,380-byte payloads pass with the VPN on, but 1,420 fail. The pieces fit together: the long answer is split, and the network between you and the resolver drops the fragments some of the time. Lowering the tunnel packet size, where the app or router allows it, or switching to a network that passes fragments, ends the random errors. The example is invented for illustration, and real numbers vary.

What you can do about it
Work from the least invasive option to the most:
- Reconnect and try another VPN location or connection method. A different route may avoid the broken hop. Your My Pass page lists the connection options that apply to your pass.
- Switch networks to confirm the cause. A mobile hotspot is a quick, harmless test.
- Check the VPN app and your device settings for an MTU or packet size option. Many apps choose a safe value automatically and offer no setting. Do not invent options that are not there.
- If you manage your own router, check its MTU and any DNS or firewall options. A router that drops fragments or blocks "too big" notices may be the real culprit. Write down the original values first.
- Use a lower value in small steps. If you can set the MTU, reduce it by about 20 or 40 bytes at a time and test again. Stop once the failures stop. The aim is the largest value that works, not the smallest.
- Consider where DNS is answered. If only some of your lookups use a special route, split DNS setups can create their own intermittent behaviour.
Keep the changes reversible, and restore the original value if nothing improves. Lowering the MTU on the wrong device can also introduce new trouble.
Limits and what to watch for
- Intermittent DNS failures have many causes. A busy resolver, a weak Wi-Fi signal, an overloaded router, a bad DNS cache, packet loss and a server that is genuinely down can all look identical. MTU is one candidate, not the default answer.
- A test that passes does not prove the cause is elsewhere. Some paths treat ping differently from DNS traffic, so a successful ping does not guarantee large lookups work.
- Do not trust one result. Repeat each test several times, because random failures can hide in a single run.
- A VPN cannot repair a broken network. It can add a small amount of overhead and change the route, but it does not control the equipment between you and the DNS server. No VPN can guarantee that every lookup will succeed.
- Settings differ by device. Phones and tablets often do not expose an MTU setting at all. In that case, switching network or connection method is the practical fix.
- Avoid copying numbers from forums. A value that suits someone else's provider may not suit yours. Measure on your own connection.
- Stop and ask for help if tests contradict each other. Share what you measured with your network administrator or provider.
Quick comparison of the possible causes
| Possible cause | Typical pattern | Good first check |
|---|---|---|
| MTU too large for the path | Failures depend on the name, TCP works, retries succeed | Do-not-fragment ping and TCP lookup |
| DNS server overloaded or down | Failures appear for all names, often at busy times | Try another resolver |
| Weak Wi-Fi or packet loss | Everything is flaky, not just lookups | Test on a cable or another network |
| Stale or broken local cache | A name stays wrong until the cache is cleared | Clear the DNS cache and retest |
| Firewall dropping fragments | Large answers vanish, small ones pass | Test from a different network |
| VPN not fully connected | No traffic at all, or only some apps affected | Reconnect and test a plain site |
Summary
DNS answers are usually tiny, which is why a wrong MTU rarely bothers them. Occasionally an answer is big enough to be split or to need a larger packet than the path can carry, and when the network drops fragments or hides the "too big" notice, the lookup times out. A VPN trims the available packet size slightly, so a path that was marginal can start failing at random. Test the pattern, compare UDP with TCP, measure the largest packet that crosses the path and change one setting at a time. If you would like to try a prepaid pass and see how your connection behaves with it, you can look at the options on the XPASS pricing page.
Frequently asked questions
Can a wrong MTU really break DNS?
Yes, but only in a particular way. Small DNS answers fit in one packet and arrive normally. Larger answers can be split into fragments or sent as oversized packets, and if the path cannot carry them or silently drops the pieces, the lookup times out. That is why the failure looks random and depends on which name you ask for.
Why do some names fail while others work every time?
The size of a DNS answer depends on the name. A simple name with one address gives a short reply. A name with many records, long alias chains or security data gives a longer one. Only the longer replies are at risk when the MTU is too small for the path.
How can I tell whether it is MTU or a DNS server problem?
Ask the same name against a different DNS server and ask again using TCP. If lookups succeed over TCP or with another resolver but fail on plain UDP, packet size is a strong suspect. Also run a do-not-fragment ping with a few sizes to find the largest packet that crosses the path.
Should I just set the MTU as low as possible?
No. A very low value wastes capacity and can slow large transfers. Look for the largest value that works reliably, change one thing at a time, and write down the original setting so you can undo the change.
Will turning off the VPN confirm the cause?
It is a useful clue. A VPN adds a wrapper to every packet, so the usable packet size inside the tunnel is smaller. If the random failures disappear without the VPN, the tunnel packet size is worth testing. It is not proof, because the VPN also changes which DNS server you use.
References
About the author

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 passesKeep reading

Troubleshooting
VPN MTU Problems: Symptoms and Fixes
A VPN adds a wrapper to every packet, and when the path cannot carry the bigger size, some pages stall while others work. Here is how to recognise and test it.
9 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

VPN Basics
How DNS Works: From Domain Name to IP Address
DNS is the lookup system that turns a website name into the IP address your device actually connects to. Here is how a lookup works, step by step, and why it matters for privacy.
9 min read