Skip to content

Why Can a DNS Query Succeed While the Website Still Will Not Open?

Getting an IP address back from DNS is only the first step of loading a page. See what can still fail afterwards and how to test each stage in order.

10 min readUpdated Nov 4, 2026By XPASS Editorial Team

Why Can a DNS Query Succeed While the Website Still Will Not Open?

You type a web address, the page spins, and then it fails. You open a terminal, run a lookup, and the DNS answer comes back perfectly: a name, an IP address, no error. It feels like a contradiction. If the name resolved, why does the site refuse to open?

The answer is that DNS is only the first step in loading a page. It turns a name into a number, nothing more. Everything that happens afterwards, from finding a route to that number, to a secure handshake, to the website actually sending content, is a separate step that can fail on its own. This article walks through those later steps in order, shows how to test each one, and explains where a VPN fits in. It will not promise that any particular fix works for every site, because the real cause differs from case to case.

What DNS actually does, and what it does not

The Domain Name System, described in RFC 1034 and RFC 1035, is a distributed directory. Your device asks a resolver, "What address belongs to example.com?" and the resolver replies with one or more addresses. Our guide to how DNS works covers the mechanics in detail.

A successful reply tells you exactly one thing: that some server was willing to give your device an answer for that name. It does not tell you:

  • that the address is the right one for you today,
  • that the address can be reached from your network,
  • that the server at that address is switched on and listening,
  • that the secure connection will start correctly,
  • or that the website will return a page instead of an error.

Think of DNS as looking up a shop's street address in a phone book. The entry exists, but the street may be closed, the door may be locked, or the shop may have moved. Finding the entry does not get you inside.

The journey after the lookup

After DNS, a normal page load goes through these stages. A failure at each one looks similar on screen, which is why the browser's generic message is not much help.

Stage What happens Typical failure symptom
1. Route Your packets must find a path to the address Timeout, "took too long to respond"
2. Connection A TCP connection is opened to the server's port "Connection refused" or timeout
3. Secure handshake TLS agrees keys and checks the certificate Certificate warning, handshake error
4. Request and response Your browser asks for the page, the server answers 403, 404, 500, 502, 503 status or an empty reply
5. Page assets Scripts, images and other files load from more names Page appears half-built or stays blank

Remember also that one page can involve several names. The main address may resolve and work while a second name the page depends on does not, leaving the page blank or broken.

Cause 1: the address resolves but cannot be reached

The most common reason is simple: the address in the DNS answer cannot be reached from where you are. This has several variations.

  • The server is down or overloaded. The name still points to it, but nothing is listening. Other people see the same failure at the same time.
  • A network rule drops the traffic. A firewall, a router setting or a security product on your device or network may block the destination or the port, while still allowing DNS.
  • The route is broken somewhere in between. An internet service provider or a transit network can have a fault affecting only some destinations. DNS keeps working because it goes to a different place.
  • The answer is outdated. The site moved to a new address, but your resolver or device still holds the old record until its stored copy expires. Our article on stale DNS cache explains how that happens.

A quick test is to reach the address directly, which separates "cannot reach" from everything that follows.

Cause 2: IPv6 and IPv4 do not agree

Many names return two kinds of addresses: IPv4 and IPv6. Modern devices prefer IPv6 when the network says it is available. If your network advertises IPv6 but cannot actually carry it to the wider internet, or if the website's IPv6 address is faulty, your device can spend several seconds waiting before it falls back to IPv4, or may not fall back at all in some applications.

The result is a lookup that "works" but a page that is slow or never opens. This is a classic reason why one site fails while others load, and why the same site may work on a different network.

You can test it by forcing each version:

  • curl -4 -I https://example.com tries IPv4 only.
  • curl -6 -I https://example.com tries IPv6 only.

If one works and the other hangs, you have found the stage that breaks. Our article on VPN and IPv6 problems describes how a mismatch between a VPN tunnel and IPv6 can produce the same symptom. Whether to disable IPv6 as a workaround depends on your device and network; do it only if you understand the effect, and undo it after testing.

Cause 3: the secure handshake fails

Most sites use HTTPS. After a connection opens, the browser and server perform a TLS handshake (RFC 8446) to agree on encryption and to check the site's certificate. This step can fail even when the address is reachable.

Common triggers:

  • Wrong date or time on your device. Certificates have validity periods. If your clock is far off, a perfectly good certificate looks expired or not yet valid.
  • An expired or misconfigured certificate on the site. Only the website owner can fix this.
  • Something intercepting or filtering the connection. Some networks, security programs or captive portals interfere with the handshake, which can cause errors you would not see elsewhere.
  • A mismatch in the name. The certificate is issued for a different name than the one you typed.

A browser usually shows a certificate warning for these cases. Read the warning rather than clicking through it. If the warning appears on only one network and not on another, the network is suspect. You should not bypass certificate warnings on pages where you enter passwords or payment details.

Cause 4: packets are too large for the path (MTU)

Every network link has a maximum packet size. When a path has a smaller limit than your device assumes, large packets can be silently dropped. Small packets, such as a DNS question and answer, pass through without trouble, and so does the start of a connection. But the moment a bigger packet is needed, such as a certificate during the handshake or the first full page, everything stalls.

This is a well-known cause of the pattern "the lookup works, the page hangs half-way". It is more likely when a tunnel such as a VPN, a mobile network or a home router adds extra headers to each packet, leaving less room. RFC 1191 describes the Path MTU Discovery mechanism that is meant to handle this, and it depends on certain control messages not being blocked. Our guide to the VPN MTU issue explains the details and the symptoms. Changing packet-size settings is an advanced step; use the official guidance for your device and keep a note of the original value.

Cause 5: the website answers, but not with a page

Sometimes everything up to the final step works, and the server simply refuses or fails. HTTP status codes in RFC 9110 describe this:

  • 403 Forbidden: the server understood the request but will not allow it. Reasons include an address-range rule or a regional rule.
  • 404 Not Found: the address works but the page does not exist.
  • 429 Too Many Requests: you or your network sent too many requests in a short time.
  • 500, 502, 503, 504: a problem on the server side or between servers.

A page that returns an error like 403 is a different problem from one that never connects. If you see an access-denied or verification page after connecting through a VPN, our help page on websites not loading or showing CAPTCHAs with a VPN is the better place to start. We make no claim that a VPN, or any tool, can open a particular site; a site decides who it accepts.

A step-by-step way to find the failing stage

Work through these checks in order and stop when something changes. Write down the result of each, because the pattern is the useful part.

  1. Confirm the lookup. Run nslookup example.com (Windows, macOS, Linux) and note the addresses returned. Replace example.com with the site you are testing.
  2. Check for several names. Open your browser's developer tools network tab and see whether the page waits on other names. A page can fail because of a second name, not the main one.
  3. Test basic reachability. Try ping to the address. Some servers do not reply to ping on purpose, so a missing reply alone proves little, but a reply is a good sign.
  4. Watch where the connection stops. Run curl -v https://example.com. The output shows whether it stalls at connecting, during the handshake, or after the request. That one line usually narrows the cause to one of the stages above.
  5. Test IPv4 and IPv6 separately with the -4 and -6 options.
  6. Compare networks. Try the same site on mobile data or another Wi-Fi. If it works there, the problem sits in the first network, its router or its provider.
  7. Compare with and without the VPN. Disconnect the VPN, test, reconnect, test again, and compare. Change only one thing at a time.
  8. Check date and time on your device, and make sure automatic time is on.
  9. Clear the local DNS cache and restart the browser if you suspect an old answer. The command differs by system, so use your operating system's own documentation.
  10. Try another browser or a private window to rule out an extension or a stored setting.

A plain example

Maya opens a small shop's site. nslookup returns an address immediately. The browser spins for thirty seconds and gives up. She runs curl -v, and it prints "Trying" followed by an IPv6 address and then nothing for ten seconds before it moves to an IPv4 address and succeeds. The stage that breaks is IPv6 on her home network, not DNS and not the website. After she tells her provider and tests with curl -4, the pattern is clear enough for them to look at the IPv6 setup on her router. She did not need any special tool, only a way to see which stage was slow.

Where a VPN fits in

A VPN changes several of the stages above, which is why the symptom can change when you connect.

  • DNS may be answered by a different resolver. The answer can differ from what your normal network gives, including which address is returned for a site that picks servers by location.
  • The route is different. Your traffic leaves from the VPN's exit instead of your home network, so a fault or a block on one side may disappear or appear.
  • Packet size is smaller. The tunnel adds overhead, which can trigger the MTU symptom described earlier.
  • IPv6 handling may differ. If the VPN carries only IPv4 while your network still advertises IPv6, some traffic may behave unexpectedly.
  • The site may treat the exit address differently. Some websites limit traffic from addresses shared by many people.

The practical lesson is to test with the VPN on and off on the same network, and to change one thing per test. If the site works with the VPN off and fails with it on, try a different location in the app, then reconnect once. If it still fails, note the stage from curl -v and contact support with that detail.

Limits and what to watch for

Some honest limits apply to this kind of troubleshooting.

  • You cannot fix the other side. If the website's server is down or its certificate has expired, nothing on your device will help. Waiting or contacting the site is the only option.
  • Tools give clues, not proof. A missing ping reply, for example, may be a deliberate setting. Combine several checks before drawing a conclusion.
  • Be careful with workarounds. Turning off security software, disabling certificate checks or changing system settings you do not understand can lower your protection. Prefer a temporary, reversible test and restore the setting afterwards.
  • A VPN is not a repair tool for every site. It protects the path between your device and the VPN exit and does not guarantee access, speed or that a particular site will open.
  • Do not try to get around a site's rules. If a site refuses you by policy, the right response is to read its message and contact it, not to disguise the connection.
  • Corporate and public networks may have rules you cannot see. On a work, school or hotel network, ask the operator before changing anything.

Common mistakes

  • Treating a successful lookup as proof that the network and the website are healthy.
  • Testing only in a browser, which hides the stage where the connection stops.
  • Changing several settings at once and then not knowing what fixed or broke things.
  • Clicking through certificate warnings on pages that handle passwords or payments.
  • Forgetting to restore settings such as IPv6 or MTU after a test.
  • Assuming the VPN is always the cause, or never the cause, without comparing with and without it.

Summary

A successful DNS query only means a name was turned into an address. The page can still fail at the route, the connection, the secure handshake, packet size limits or the website's own response, and IPv6 mismatches and stale answers add further ways to break. Use a lookup, then curl -v, then compare IPv4 with IPv6, different networks and VPN on and off, changing one thing at a time. That sequence usually shows which stage fails and who can fix it.

If you want a simple prepaid way to test a connection on a different route, you can look at the options on the pricing page when it suits you.

Frequently asked questions

If nslookup returns an IP address, why does the page still not load?

DNS only translates a name into an address. After that your device still has to reach that address, complete a secure handshake and receive a valid web response. A failure at any of those later steps leaves the page blank even though the lookup worked.

How can I tell whether the problem is DNS or something after DNS?

Run a lookup first. If it returns an address, test the connection to that address with a tool such as curl and read where it stops: connecting, handshake, or response. Each stage points to a different cause.

Can a wrong DNS answer still look like a successful query?

Yes. A lookup can succeed with an outdated address, an address for the wrong network, or one that is unreachable from where you are. The query worked, but the answer is not useful to you.

Does a VPN cause this?

It can contribute, for example through a different route, an IPv6 mismatch or packet size limits, but the same symptoms also appear without a VPN. Testing with the VPN on and off on the same network shows which side the problem is on.

When should I contact the website or my provider?

If tests from more than one network all stop at the same stage, the problem is probably on the website's side and only its owner can fix it. If it fails only on one network, the network operator or your own settings are more likely.

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

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

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