How to Set Custom DNS on Android VPN: A Practical Setup Guide

Fix stubborn loading and name-resolution issues by checking the DNS options in your Android VPN app. Learn when to keep automatic settings, enter a DNS server manually, or use proxy-provided DNS—and how to test or undo a change.

Changing DNS can help when an Android device connects to a VPN but certain sites or apps keep failing to find their servers. It is not a universal fix: the cause may instead be a stale app connection, a routing rule, a captive Wi-Fi portal, or a resolver that the VPN does not use. Before entering a custom server, identify which layer handles DNS on your device, change one setting at a time, and compare the same sites before and after the change.

How Android VPN DNS Settings Work

DNS translates a domain name, such as example.com, into the address a device needs to contact a service. A VPN can affect this process because it may route DNS requests through its tunnel, provide a resolver address, or pass requests to a proxy or remote endpoint. The exact behavior depends on the VPN app, its connection mode, Android’s network settings, and the service configuration. A DNS option displayed in an app is not necessarily the same setting as Android’s system-wide Private DNS option.

Android’s Private DNS setting is a system feature for encrypted DNS using DNS over TLS. On many Android versions, its choices include an automatic mode and a provider-hostname mode; the precise labels and menu location vary by manufacturer. The hostname field is not generally a place to enter an IPv4 address such as 192.0.2.1. A VPN app may have its own DNS field, however, and may accept an IP address, a hostname, or a choice such as automatic or proxy-provided DNS. Follow the format indicated by that app rather than assuming the two settings are interchangeable.

When a VPN establishes an Android VPN connection, it can configure routes and DNS servers for traffic handled by that connection. Some clients let you choose a resolver directly. Others use DNS supplied by the VPN service, or send name lookups through a proxy-compatible method. In the latter case, the proxy may resolve the domain remotely instead of having Android resolve it locally. That can matter for services that respond differently depending on where the request is made.

These layers may interact. For example, changing Android Private DNS may have no visible effect if the VPN app directs DNS requests to a different resolver. Conversely, a VPN client might not use its own DNS option in every mode. There is no single behavior to assume across all Android devices and clients; inspect the active app’s settings and verify the result with a repeatable test.

Automatic

Use the app or system default

Manual

Enter a resolver in the VPN app

Proxy DNS

Let the remote proxy handle lookups

Key distinction: Android Private DNS and a VPN app’s DNS setting are separate controls. Identify which one is active before changing either.

Choose Automatic, Manual, or Proxy-Provided DNS

Start with the option that matches how you use the VPN, not with the assumption that a custom resolver is always faster or more private. If the VPN’s automatic option is working, leaving it in place is usually the simplest baseline. A manual resolver is useful when you have a specific, trusted resolver in mind and the app clearly supports entering it. Proxy-provided DNS can be appropriate when you want the remote endpoint to resolve names, but it depends on the client’s proxy mode and the service’s implementation.

Option When it may fit What to check Possible drawback
Automatic or app default You do not have a specific resolver requirement, or you want a clean baseline for troubleshooting. Check whether the app says it uses service DNS, system DNS, or another automatic mode. The label may not explain which resolver is actually selected.
Manual DNS in the VPN app You have a resolver you trust and the app provides a documented DNS field. Confirm whether the field expects an IP address, a hostname, or a particular format. Check whether the setting applies to all routes. A resolver that is unreachable, filtered, or incompatible with the selected mode can make lookups fail.
Proxy-provided or remote DNS You want the proxy endpoint to resolve names, and the client explicitly offers this behavior. Confirm that the selected protocol and app support remote name resolution for the traffic in question. Support varies. A setting may apply only to certain proxy connections, not every app or system request.
Android Private DNS You intend to configure Android’s encrypted DNS feature independently of a VPN app. Use the provider-hostname field as intended, then test with the VPN both connected and disconnected. The VPN may use a different resolver, so changing this setting might not affect the behavior you are investigating.

Do not choose a public resolver solely because its address appears in an online list. Consider who operates it, its privacy policy, whether it is reachable on your current network, and whether the VPN app sends queries to it as expected. A resolver can see the domain names it receives even though DNS does not reveal the contents of an encrypted website connection. A VPN also does not make an untrusted resolver trustworthy by itself.

If only one service fails, first compare it with other domains and apps. A custom DNS server is more plausible as a solution when multiple unrelated domains fail to resolve, while one failing app may have its own cache, routing, or connectivity issue. Keeping automatic DNS as a baseline makes it easier to tell whether a manual change actually helped.

Set and Test a Custom DNS Option on Android

Menu names vary between Android versions and VPN clients, so treat the following as a safe sequence rather than a promise that every screen will look identical. Before you begin, note the current setting or take a private screenshot with sensitive information excluded. Do not share account details, subscription URLs, or private server configuration in a troubleshooting post.

  1. Check the starting connection. Connect the VPN using its current DNS option. Open a few unrelated sites or apps that normally work for you, then note which ones fail and whether the error refers to a name lookup, a timeout, or something else. If possible, repeat the check on another network, such as mobile data instead of Wi-Fi. This helps separate a resolver issue from a particular Wi-Fi network or app problem.
  2. Inspect the VPN app’s DNS controls. Open the active profile or connection settings and look for labels such as DNS, name resolution, remote DNS, or proxy DNS. Read any explanatory text. If there is no DNS option, do not assume that a similarly named field in another screen controls the VPN tunnel.
  3. Decide which control you intend to test. For a VPN-specific test, use the DNS option in the VPN app if it is available. For Android Private DNS, open the system network settings and find the Private DNS control; the path differs across device makers. Avoid changing both controls in the same test, because that makes the outcome difficult to interpret.
  4. Choose a resolver and enter it in the correct format. Use only a resolver you trust and understand. If the VPN app requests an address, enter the address in the format it specifies. If Android Private DNS requests a provider hostname, enter a hostname supported by that provider rather than pasting an IP address. If you are unsure what the field accepts, leave the setting on automatic and consult the app’s help information first.
  5. Save, reconnect, and repeat the same checks. Apply the change, disconnect and reconnect the VPN if the app requires it, and then revisit the same sites or apps from the first test. If results differ, repeat once to rule out a temporary network change. The ShenVPN homepage can help you identify the service’s supported platforms and available guidance, but the DNS controls themselves remain in Android or your VPN client.
  6. Record the result and avoid extra changes. Note whether name lookups improved, stayed the same, or became worse. Keep a record of the original mode and the tested mode so you can restore the baseline. Do not switch resolvers, VPN routes, and app-routing rules all at once.
  • ✅ Test the same domains before and after changing one DNS setting.
  • ✅ Reconnect the VPN when the app needs a new tunnel configuration.
  • ✅ Use a hostname in Android’s provider-hostname field when that is what it requests.
  • ❌ Do not paste a resolver address into a field that expects a provider hostname.
  • ❌ Do not assume that “proxy DNS” and Android Private DNS mean the same thing.

For a controlled comparison, keep the VPN route, selected apps, and network connection unchanged while testing DNS modes. If you need to change networks to reproduce the issue, do that as a separate test and note it. A clean comparison is more useful than trying several settings until a page happens to load, because websites and mobile networks can behave differently from one moment to the next.

Verify the Result and Narrow Down the Cause

A successful DNS change should improve the specific name-resolution symptoms you observed without creating new failures elsewhere. Test more than one unrelated domain and, if the issue occurs in a particular app, test that app as well as a browser. A browser may reuse cached results, while an app may keep its own connection or DNS cache. If an address works in one app but not another, the difference does not automatically prove that the VPN resolver is broken.

Use the same network and VPN route for the first comparison. Then, if needed, repeat on a different network while keeping the DNS option fixed. If the failure occurs only on one Wi-Fi network, check whether that network requires a sign-in page or blocks access to the chosen resolver. If all domains fail only while the VPN is connected, return to the VPN app’s automatic setting and check whether the connection profile, route selection, or app-specific routing is responsible.

It can help to separate three observations:

  • Connection status: Does the VPN app show that it is connected, and does that status remain stable while you test?
  • Name resolution: Do multiple unrelated domain names resolve, or do they fail with a lookup-related message?
  • Application access: Does the service still fail after the domain can be reached, suggesting a separate app, route, or service issue?

These observations are clues, not definitive proof of a DNS leak or a particular resolver. Public IP-checking pages can show an apparent exit address, but they do not necessarily reveal every DNS request made by every app. Similarly, a single successful page load does not prove that all Android traffic uses the resolver you selected. Prefer the VPN client’s own documentation and repeatable checks over conclusions drawn from one test page.

If the client supports split tunneling, check whether the affected app is included in the VPN route. An app excluded from the tunnel may use the device’s normal network path and its associated DNS behavior. Some clients also have separate rules for system traffic or proxy routing. Keep these details in mind before blaming the resolver; a DNS setting cannot fix traffic that is not using the path you think it is using.

How to read the test: If several unrelated names fail only with one DNS mode, restore the prior mode and compare again. If only one app or one network fails, investigate that app’s routing or the network’s restrictions before changing more DNS settings.

Undo the Change and Keep a Reliable Baseline

If the custom setting makes browsing less reliable, restore the value you recorded before the test. In the VPN app, that usually means selecting its automatic or default DNS option, if available. In Android Private DNS, return to the previous mode, such as automatic, rather than leaving an untested provider hostname in place. Disconnect and reconnect the VPN if necessary, then repeat the original checks.

If you no longer remember the original value, use the app’s documented default rather than guessing a resolver. Avoid resetting all Android network settings as an early troubleshooting step: a broad reset can remove saved Wi-Fi details and other network preferences without identifying the cause. Restarting the VPN app or reconnecting to the network may be a more targeted next step, but make one change at a time and observe whether it affects the same failure.

Keep automatic DNS when it works consistently and you do not need a specific resolver. Use a manual setting only when you can confirm the expected format, trust the resolver, and reproduce an improvement. Choose proxy-provided DNS only when the active client explicitly supports it and the behavior suits your use case. If none of these options changes the symptom, look at the VPN route, per-app rules, network restrictions, and the affected app’s own connection state.

Finally, treat DNS as one part of a connection, not as a general speed switch. A different resolver can change how names are looked up, but it cannot guarantee faster loading, repair an unstable tunnel, or resolve every service-access problem. The most practical setup is the simplest one that passes your own repeatable checks and can be restored without guesswork.

Bottom line: Start with the VPN app’s default, identify whether the setting belongs to Android or the VPN, test one change at a time, and restore the baseline if results do not improve.

Try It Free