Skip to content

Why Does an Android VPN Fail When a Private DNS Hostname Is Misspelled?

One wrong letter in the Private DNS field can leave a VPN showing as connected while every page fails. Here is why strict mode behaves this way and how to fix it.

10 min readUpdated Nov 8, 2026By XPASS Editorial Team

Why Does an Android VPN Fail When a Private DNS Hostname Is Misspelled?

Few Android problems feel as confusing as a VPN that says "connected" while every page, app and search fails. The tunnel is up, the key icon is showing, yet the browser reports that the server cannot be found. One of the quieter causes is a small typing mistake in the Private DNS setting: a missing letter, an extra space or a pasted web address where a plain hostname belongs.

This article is about that single failure. It does not explain how the Private DNS setting and a VPN interact in general, because Android Private DNS and VPN: how they interact already covers that, and it does not repeat the full list of reasons a tunnel can have no traffic, which sits in VPN connected but no internet. Here the question is narrower: why a misspelled hostname causes the failure, how to recognise it, and how to put it right in a few minutes.

What the Private DNS hostname field does

Android's Private DNS setting sends your name lookups to a resolver over an encrypted connection, using DNS over TLS (RFC 7858), usually on port 853. It has three modes: Off, Automatic and a provider hostname. You find it under the network or connection settings of your phone, and the exact menu names differ between makers and Android versions.

The first two modes are forgiving. Off sends plain lookups to whatever resolver the network supplies. Automatic tries encryption with that resolver and quietly falls back to plain lookups when it is not supported. The third mode is different. When you type a hostname, you are telling Android: use this provider and only this provider, over an encrypted connection, and do not fall back.

That strictness is the whole point of the mode. It stops a hostile network from forcing your phone to downgrade to unencrypted lookups. It is also why a small mistake in the field has a large effect. Android has no second choice to try, so a hostname that is wrong simply means no lookup is answered.

Why one wrong letter breaks everything

A hostname-based Private DNS setting needs several things to be true at the same time.

  1. The name must resolve. The phone first has to find an address for the hostname you typed. If the name is misspelled, no such address exists, and the phone cannot even locate the provider.
  2. The provider must answer on the encrypted port. Once an address is found, the phone opens a TLS connection, normally on port 853.
  3. The certificate must match the name. The server presents a certificate, and Android checks that it was issued for the hostname you entered. If you reached a different host, or a name that does not match the certificate, the check fails and the connection is refused.

A typo breaks the first step, or, in the rare case that the misspelled name belongs to some other real host, the third. In both cases the encrypted channel is never established. Because strict mode forbids falling back to plain DNS, the phone has no working resolver. Every request to translate a site name into an address fails, and the browser reports something like "server not found" or a DNS error message.

The VPN is not the cause, but it can seem like it. Many people only notice the problem after connecting a VPN, because that is when they start browsing and testing. If the hostname was entered weeks earlier and everything worked on mobile data, the symptom looks as if it started with the VPN. In some cases the VPN really does change things, since it can alter which path your lookups take, but the typo is the underlying fault either way.

Typical typing mistakes

Mistake What it looks like Why it fails
Missing or swapped letter dns.exmaple.net The name does not exist, so it never resolves
Web address pasted in https://dns.example.net The field wants a hostname, not a link with a scheme
Path or extra text dns.example.net/dns-query A path belongs to DNS over HTTPS, not to this field
IP address typed in 203.0.113.53 The field expects a name that matches a certificate
Space at the start or end "dns.example.net " Hidden whitespace makes it a different name
Wrong ending dns.example.com instead of .net Different domain, so wrong server or no server
Dot replaced by hyphen or comma dns-example.net A different name entirely
Letters that look alike rn instead of m, 0 instead of o, l instead of 1 Easy to miss when reading quickly

Some Android versions check the name when you press Save and show a message that the phone could not connect to the hostname. Others save it without complaint and the failure only appears when you browse. Do not count on a warning. A hostname that was accepted is not proof that it is correct.

Autocorrect and keyboard suggestions add to the problem. A phone keyboard may capitalise the first letter, insert a space after a dot or replace an unfamiliar word with a common one. DNS names are not case sensitive in the usual sense, but an inserted space or a replaced word is a real change.

How to recognise the symptom

A misspelled hostname leaves a recognisable pattern. You do not need special tools to see it.

  • The VPN says connected, but pages do not load. Browsers report that the server cannot be found, or show an error that mentions DNS.
  • The failure is immediate. A page that fails with a DNS message usually does so within a second or two, instead of loading slowly and then stalling.
  • Some things keep working briefly. Apps that already hold a live connection, such as a call in progress or a stream that is buffering, may carry on for a short while. New connections fail.
  • It is not tied to one site. Every website fails in the same way, including ones you visited yesterday.
  • Turning the VPN off changes little. If the hostname is the problem, lookups still fail with the VPN disconnected, on both Wi-Fi and mobile data. If they fail only while the VPN is on, the cause may be a conflict between the hostname and the tunnel rather than a typo, which Android VPN and Private DNS: setup tips explains.
  • A different network or phone behaves differently. If a friend's phone with the VPN works fine on the same Wi-Fi, the fault is in your phone's settings.

A short example makes it concrete. Maya copies a filtering provider's name from a forum post and types it into Private DNS by hand. She misses one letter. For two weeks she browses mostly on trusted apps with cached data and notices little. Then she travels, joins hotel Wi-Fi, connects her VPN and finds nothing opens. She restarts the VPN twice, reinstalls the app and blames the hotel. The fix was to open Private DNS, switch to Automatic and watch everything load. She then re-entered the name properly, copied from the provider's own page.

Step-by-step: confirm it is the hostname

Run these checks in order. Each takes under a minute.

  1. Open the Private DNS setting and read the hostname slowly, character by character, against the name on your provider's own page.
  2. Switch the mode to Off and save. Do not touch the VPN yet.
  3. Open a website in the browser that you have not visited recently. If it loads, the hostname setting was blocking lookups.
  4. Connect the VPN with Private DNS still on Off and load the same site. If it loads, the tunnel is fine and the problem was the hostname.
  5. Try Automatic and test again. Automatic is the sensible resting place for most people.
  6. If pages still fail with Private DNS on Off, the hostname was not the cause. Move to the wider checks in the VPN connected but no internet guide and the Android troubleshooting guide.

Only after step 3 or 4 has succeeded should you try entering the hostname again. If you change two things at once, you will not know which one mattered.

How to fix it and enter the hostname safely

Once you have confirmed the cause, work through these changes, starting with the least invasive.

  • Set Private DNS to Automatic. This is the quickest recovery and keeps encryption whenever it is available.
  • Reconnect the VPN. The app reports its DNS servers to the system when it starts. Turn it off and on after any DNS change so it begins from a clean state.
  • Toggle flight mode for about ten seconds. This clears cached network state, including a resolver choice from before the change.
  • Re-enter the hostname by copying it. Open the provider's own page, select the name and copy it instead of retyping. Paste it into the field, then check that no https:// or trailing slash came along.
  • Remove spaces. Place the cursor at the end of the pasted text and make sure there is no space after the last letter. Some keyboards add one when you paste.
  • Save and test immediately. Load a fresh page, then connect the VPN and load another. If either fails, return to Automatic and take another look at the name.
  • Keep a note of the working value. A line in a notes app with the exact hostname saves you from guessing next time.

If the name is correct and lookups still fail on one network but work on another, that network may be filtering the encrypted lookup port. Leaving Private DNS on Automatic is the practical answer there.

Preventing the problem

Prevention is mostly about habits.

  • Copy and paste, do not retype. A pasted name cannot contain a typo you introduced.
  • Change one setting at a time. If you add a hostname and a VPN on the same day, you will not know which caused a later failure.
  • Test right after saving. Load an uncached page and see it work before relying on the setting.
  • Write down what you changed. A note such as "Private DNS set to a filtering provider" helps you or a family member later.
  • Check family phones. If you manage a child's or parent's phone, a mistyped filter hostname there can look like a broken VPN or a broken phone. Walking through a calm checklist is easier than guessing.
  • Prefer Automatic unless you have a reason. A hostname mode is a deliberate choice for people who want a specific provider. It should not be left on by accident.

When the hostname is correct but the VPN still struggles

Do not assume the typo is the only possible fault. If the hostname is exactly right, other things can still produce the same symptom.

  • The provider may be down or may have changed its hostname.
  • A captive portal, such as a hotel login page, may block the encrypted port until you sign in.
  • A firewall or school network may filter port 853.
  • The VPN may route only part of your traffic through the tunnel, so the path to the provider's address changes when you connect.
  • Another app that uses the VPN slot, such as an ad blocker that runs as a local VPN, may be competing with your VPN app. Android allows one VPN service at a time.
  • Your login details may be wrong. In that case the VPN does not connect at all, which looks different from connecting and then failing to load pages. With a free VPNclient app and an XPASS pass, the username and password are the ones shown on your My Pass page.

A useful rule is to separate the problem into layers. First, does the tunnel come up? Second, do lookups answer? Third, do connections to the resolved addresses succeed? A typo in Private DNS lives in the second layer.

Limits and things to watch for

  • Private DNS is not a VPN. It protects the lookup step only. The sites you connect to and your IP address stay visible to the network that carries the connection.
  • A correct hostname is a trust decision. The provider you name sees your lookups on every network, including mobile data, so read its policy before choosing it.
  • Strict mode has no safety net. That is by design, but it means a failing provider or a mistyped name can look like a dead phone.
  • Menus and messages differ. Phone makers label the setting differently and word their warnings differently. Treat the steps here as a guide, not a script.
  • Some apps use their own DNS. A browser with its own encrypted DNS may keep working while other apps fail, which can mislead your test. Test in more than one app.
  • No setting guarantees a working connection. Fixing the hostname restores lookups, but a network can still block, throttle or alter traffic for reasons outside your phone.

Summary

When an Android VPN connects but loads nothing, check the Private DNS hostname early. In hostname mode Android needs that exact provider over an encrypted connection and does not fall back, so a single wrong letter, a stray space or a pasted web address can stop every lookup while the tunnel still looks healthy. Set the mode to Automatic to confirm, reconnect the VPN, then re-enter the name by copying it from the provider's page and test once with the VPN on and once with it off. Keep Automatic as the default unless you have a clear reason to choose a provider.

If you want a pass you can set up and check without a renewing subscription, the XPASS pricing page shows the prepaid options.

Frequently asked questions

Why does a typo in the Private DNS hostname break my VPN?

In hostname mode Android must reach that exact provider over an encrypted connection and will not fall back to plain DNS. A misspelled name either does not resolve or reaches the wrong server, so every lookup fails. The VPN tunnel can still show as connected, but pages cannot load because no name can be translated into an address.

Is the VPN really broken if the app says it is connected?

Usually not. The tunnel and the lookup step are separate. The tunnel can be healthy while lookups fail. Set Private DNS to Automatic or Off for a test. If pages load straight away, the hostname setting was the cause, not the VPN.

What is the quickest fix?

Set Private DNS back to Automatic, then reconnect the VPN. This restores lookups in most cases. Afterwards you can re-enter the hostname carefully, copying it from your provider's page, and test again.

Can I enter an IP address or a web address in the Private DNS field?

No. The field expects a bare hostname such as dns.example.net. A pasted IP address, a link starting with https:// or a name with spaces or a path will not work as intended.

Does fixing the typo make the VPN more private?

It restores working lookups, nothing more. Private DNS only protects the lookup step. It does not hide the sites you visit or your IP address, and it does not make you anonymous.

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 Security

Android Private DNS and VPN: How They Interact

Android's Private DNS setting and a VPN both touch your DNS lookups. Here is which one wins, who sees what, and how to fix lookups that fail when both are on.

10 min read

Device Guides

Android VPN and Private DNS: Setup Tips

Android's Private DNS setting and a VPN app both touch your DNS lookups. Learn which mode to choose, how to set both up in order, and how to test that they cooperate.

9 min read

Troubleshooting

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 read