Why Does a Website Resolve to Different IP Addresses With a VPN On?
A website can return a different IP address when your VPN is on, and that is usually normal. Learn how DNS, CDNs and resolver location explain it, and when to look closer.
10 min readUpdated Nov 4, 2026By XPASS Editorial Team

You look up a website's address, switch your VPN on, look it up again, and the numbers are different. It is natural to wonder whether the VPN has broken something, or whether someone is redirecting you. In the large majority of cases the explanation is much more ordinary. A website name is not tied to one fixed IP address, and the answer you receive depends on who answers, where they are and what the site's owner has set up.
This article explains why the same site name can map to different IP addresses with a VPN on, how content delivery networks and DNS resolvers produce that result, and how to run a small comparison yourself. It stays focused on this one question. If your concern is a site that refuses VPN traffic, see why websites block VPN IP addresses instead.
What "resolving" a website name means
When you type a site name, your device does not know where to send the traffic. It first asks the Domain Name System (DNS) to translate the name into an IP address. The device sends a question to a resolver, which is a DNS server that looks up the answer or remembers it from an earlier request. The answer is one or more IP addresses, and your browser then connects to one of them. If you want the full background, how DNS works walks through the steps in detail, and the original specifications are in RFC 1034 and RFC 1035.
Two facts from that process matter here. First, DNS is a question and answer service, and the answer is chosen by the server that replies. Second, a name can point to many addresses at once, and a site owner can decide that different askers should get different answers. Neither of these is a flaw. They are how most large sites stay fast and available.

Why one name can have many addresses
A small personal website might sit on one server with one address. A busy shop, news site or video platform does not work that way. It may run hundreds of machines spread across many cities, often through a content delivery network (CDN) or its own distributed hosting. Several mechanisms produce different answers:
- Several addresses in one answer. The reply can list multiple addresses, and the order can change from one request to the next so that load spreads evenly. Two lookups a few seconds apart can already look different.
- Location-aware answers. The site's DNS can return the address of the nearest or least busy data center for the network that asked. Someone asking from one country can get a different address from someone asking elsewhere.
- Time-based changes. Addresses can be added, retired or rotated. Records carry a time-to-live, which tells resolvers how long they may remember an answer. After it expires, a fresh lookup can bring a new address.
- Different records for different services. The same name may have separate IPv4 and IPv6 addresses. Which one your device uses can change when a VPN is on, as covered below.
Because of this, "the IP address of a website" is often a simplification. A better description is "one of the addresses that site is willing to give to this asker at this moment".
How a VPN changes who is asking
A VPN changes the path your traffic takes. With the VPN on, your device sends its traffic, and usually its DNS questions, through an encrypted tunnel to the VPN server. From there, the questions go to a resolver that the VPN setup uses, which may be different from the resolver your home network, mobile carrier or café normally provides. This is the main reason the answer changes.
Think of two ways a DNS question can look to a site's name servers:
- Without the VPN, the question arrives from your internet provider's resolver, in the region where you are. The site's DNS sees that region and returns addresses that suit it.
- With the VPN, the question arrives from a different resolver, perhaps one in another city or country. The site's DNS sees that different location and may return a different set of addresses.
Your own public IP address also changes when a VPN is on, and some sites use that when they decide what to return or which version of a page to show. If that part is new to you, how VPN IP databases place addresses explains why location guesses are not always exact. None of this requires anything unusual. It is the normal outcome of asking the same question from a different place.
A plain example
Suppose you are curious about a large video site. Before connecting, you run a lookup and get a result like this, using made-up documentation addresses:
| Check | Resolver that answered | Address returned |
|---|---|---|
| VPN off | Your home network's resolver | 203.0.113.10 |
| VPN on | Resolver used through the tunnel | 198.51.100.25 |
The two addresses differ, but both belong to the site's own delivery network, both serve the same pages, and both show a valid certificate for the site name in the browser. The difference only shows that two different resolvers, in two different places, were given two different valid answers. Nothing was hijacked and nothing leaked. The site simply pointed each asker to a nearby entry point.
Now compare that with a worrying result: the site name returns an address that belongs to a private range such as 192.168.x.x or 10.x.x.x for a public website, or the page opens with a certificate warning. That is a different situation and is covered in the section on when to look closer.
How to compare the answers yourself
You do not need special software. Your system already includes a lookup tool. The steps are the same idea on any device.
- Pick one plain site name that you use often, such as a news or shopping site. Avoid names that you know sit behind a login portal that changes often.
- Turn the VPN off and run a lookup for the name. On Windows, macOS and Linux a command line lookup tool such as nslookup or dig will do. Write down the addresses and the name of the resolver that answered, which the tool normally prints.
- Turn the VPN on, wait until it shows as connected, and run the same lookup again. Write down the addresses and the resolver.
- Repeat each lookup two or three times. If the addresses already vary between repeated lookups with no VPN change, you have seen load balancing, and that explains much of the difference.
- Compare the resolver. If the resolver changed when the VPN came on, a different answer is expected. If the resolver stayed the same as your normal network while the VPN was on, that points to a separate topic, a possible DNS leak, which you can test with a dedicated DNS leak test.
- Open the site in the browser both ways and confirm the page loads normally, with a valid certificate and the expected address bar name.
Keep the notes short. You are looking for patterns, not proof of a fault. Note that your browser or app may also keep its own cache of recent answers, so a lookup in a terminal and a page in a browser can briefly disagree.
Things that make the differences larger
Several practical factors can widen the gap between the two results.
Caching
Operating systems, browsers, routers and resolvers all remember answers for a while. If you switch the VPN on and off quickly, a stale answer from the previous network may be used until its time-to-live ends. Waiting a minute, or clearing the system DNS cache, often settles the confusion.
IPv4 and IPv6
A site may publish both kinds of address. Your normal network might offer IPv6 while the VPN path offers only IPv4, or the other way round. A lookup on one side can then return a new type of address. That looks like a different IP but is the same site reached by a different route.
Split DNS and split tunnelling
Some setups send only certain names or apps through the VPN. In that case part of your lookups use the VPN's resolver and part use your normal one, so answers differ depending on the app. If you use that kind of setup, the article on split DNS explains how names are routed.
The site's own policy
Some sites deliberately give different answers to different regions for reasons such as licensing, performance or legal conditions. A VPN changes the apparent source of your traffic, so you may be treated as part of a different region. A site's rules are its own business, and this article does not suggest ways around them.

When to look closer
A different address is normally harmless. A few signs, however, justify a careful check.
- Certificate warnings. If the browser warns that the connection is not private or the certificate does not match the site name, stop. Do not enter passwords or card details.
- Unexpected destinations. The site loads but looks wrong, asks for unusual information or redirects to another name.
- Private or reserved addresses for a public site. Ranges such as 10.x.x.x, 172.16.x.x to 172.31.x.x and 192.168.x.x are for local networks. A public website resolving there is a warning sign, unless you are on a company network that intentionally maps names internally.
- Answers that never change and never load. If one address always appears and the site never opens, the problem is probably routing or blocking, not the address itself.
- Different answers on every network. If the result also changes randomly on the same network with the VPN off, the cause is usually the site, not the VPN.
If any of these happens, disconnect and note the details. Then check the VPN app settings, try another network, and compare with the steps in the help centre. For a connection that appears active but pages will not load, the troubleshooting guide for sites that will not open with a VPN walks through the usual fixes.
What this does and does not tell you
A comparison like this is useful, but it has limits that are worth stating honestly.
- It shows that answers differ. It does not prove why. The same visible result can come from load balancing, location rules or caching.
- A matching address does not prove your DNS is private, and a different address does not prove a leak. Leak testing is a separate check.
- A VPN does not control which address a website chooses to give out. It changes the path and the apparent origin of your requests, and the site decides the rest.
- A VPN does not make a connection anonymous or guarantee access to any site. Sites can still apply their own rules, and a VPN cannot change what a website does with the information you give it.
- Your own device, router or company network can also change DNS answers, for example through filtering or local overrides. Check those settings if results look strange.
Treat the comparison as a simple health check. If the pages load, the certificate is valid and the destination is the site you expect, a different IP address with the VPN on is almost always just the normal behaviour of DNS and distributed hosting.
Summary
A website name is a pointer, and the pointer can lead to many valid addresses. When a VPN is on, your DNS questions and your visible location usually change, so the site's name servers can return a different answer. That is expected for large sites that use delivery networks, load balancing and regional answers. To check, run the same lookup with the VPN off and on, repeat it a few times, note which resolver answered, and confirm that the page opens with a valid certificate. Take extra care only when you see certificate warnings, private addresses for public sites or unexpected redirects. If you want a VPN for everyday use on shared networks, you can look at the XPASS pass options and choose the number of days that suits you.
Frequently asked questions
Is it normal for a website to resolve to a different IP address when my VPN is on?
Yes, in most cases. Large sites keep many servers and answer DNS questions differently depending on who asks and from where. When a VPN is on, the question usually reaches DNS through a different network, so the answer can differ. It does not by itself mean something is wrong.
Does a different IP address mean my VPN is leaking or being hijacked?
Not by itself. A different answer is expected for many sites. A leak is about your DNS questions leaving the tunnel and reaching your normal network's resolver, which is a separate test. A hijack would show up as wrong or unexpected destinations, certificate warnings, or sites that clearly are not the real ones.
Should the IP address I see with the VPN match the address without it?
Not necessarily. For a small site with a single server it often will. For a large site that uses a content delivery network, several valid addresses exist and the one you receive depends on the resolver, the time and the location the query comes from.
How can I check which DNS answers I am getting?
Run a lookup for the site name once with the VPN off and once with it on, using the lookup tool built into your system, and compare the results along with the resolver that answered. Then confirm the page loads normally and shows a valid certificate.
When should I be concerned about the address I get?
Be careful if the site opens with a certificate warning, redirects somewhere unexpected, or the address falls in a private range for a public website. In those cases stop, do not enter any login details, and check your network and DNS settings.
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

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

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
How IP Geolocation Databases Affect VPN Locations
A VPN address is placed on the map by commercial databases, not by the VPN app. Learn how those databases work and why websites disagree about your location.
9 min read