meduzavpn
  • Protocols

    • MeduzaVPN ULTRA
    • MeduzaVPN
    • WireGuard
    • OpenVPN
    • VLESS
    • V2Ray
    • Xray
    • Shadowsocks
    • Outline
    • Hysteria
    • SOCKS5
    • IKEv2
    • SoftEther
    • MeduzaVPN vs Amnezia VPN

    Services

    • PERSONAL
    • Games
    • Telegram
    • YouTube
    • Instagram
    • Discord
    • TikTok
    • Business

    Countries

    • Europe
    • United Kingdom
    • Germany
    • India
    • China
    • Latvia
    • Netherlands
    • Singapore
    • Hong Kong
    • USA
    • Turkey
    • Finland
    • Japan
    • Austria
    • Albania
    • Belgium
    • Bulgaria
    • Greece
    • Denmark
    • Ireland
    • Spain
    • Italy
    • Canada
    • Lithuania
    • Norway
    • UAE
    • Poland
    • Portugal
    • Russia
    • Romania
    • France
    • Czech
    • Switzerland
    • Sweden
  • Pricing
  • Devices

    • Windows
    • Mac
    • PC
    • iPhone
    • iPad
    • Android
    • Mobile devices
    • Linux
    • Router
    • Multiple devices

    Apps

    Google PlayApp StoreDownload for Windows
    • What is a VPN?
    • All features
    • Servers
    • Security
    • Company
    • News
    • Reviews
    • Contacts
  • Support
  1. Home
  2. Knowledge base
  3. DNS vs VPN: what’s the difference and can a DNS server replace a VPN

DNS vs VPN: what’s the difference and can a DNS server replace a VPN

We explain how DNS and a VPN differ, which DNS servers you can use on a PC and a phone, how to set them up, and whether they can replace a full VPN.

MeduzaVPN editorial team•Published November 11, 2026•8 min read

DNS helps your device find a website’s address, while a VPN creates a secure connection through another server. That’s why a DNS server can’t be used as a VPN in the full sense. But changing your DNS sometimes solves a specific problem with pages not opening. Let’s look at where that line lies and how to set up DNS on a computer and a phone.

Contents

  1. How DNS differs from a VPN
  2. When DNS helps
  3. Setup on a PC and a phone
  4. Which to choose

How DNS differs from a VPN

When you type a site name such as meduzavpn.com, the system needs its IP address. A DNS resolver takes the query, finds the matching record and returns an answer. After that, the browser connects to the site. An ordinary DNS server looks up the site’s address; it doesn’t carry pages, video or messages, and it doesn’t change the route of the connection.

A VPN client sends the selected traffic through an encrypted tunnel to a VPN server. The server then goes out to the internet from its own address. Your ISP sees the connection to the VPN node, its timing and the amount of data, but not what’s inside the tunnel. Protection beyond the VPN server depends on the protocol of the destination service: websites need HTTPS. Learn more about how a VPN works.

Ordinary DNS and a VPN: different layers of networking
CapabilityDNSVPN
Changing the IP a site seesNo: the connection comes from your usual addressThe site sees the server’s exit IP for traffic in the tunnel
EncryptionPlain DNS doesn’t encrypt queries; DoH and DoT only protect the exchange with the resolverEncrypts traffic between the client and the VPN server
PrivacyYou change which operator you trust with your DNS queriesSome of the trust shifts from your ISP to the VPN owner
Access to sitesCan help when the problem is name resolutionChanges the route; the result depends on the network and the resource’s restrictions

Can you use a DNS server instead of a VPN? Only if your goal is limited to getting a correct DNS answer. Switching resolvers doesn’t hide your public IP, doesn’t create a secure channel for apps and doesn’t make you anonymous. Even encrypted DNS is not a VPN: your ISP can still see the addresses of the hosts you connect to.

When DNS can work instead of a VPN

Changing DNS is useful when your ISP’s resolver is unreachable, slow to respond or returns a wrong address. If a restriction is implemented only at the level of the DNS answer, another reachable resolver can sometimes get the site to open. This isn’t a universal workaround: IP blocking, connection filtering and account restrictions stay in place. And if the site itself is down, a new DNS won’t bring it back.

Smart DNS is a separate service. It can substitute answers for selected domains and route some requests through the provider’s nodes. Unlike ordinary public DNS, this kind of intermediary takes part in accessing specific resources. But Smart DNS doesn’t have to encrypt traffic or change the IP for all apps. Check the list of supported services, any requirement to register your home IP, and the provider’s terms.

Don’t confuse Smart DNS with DNS over HTTPS and DNS over TLS. DoH and DoT protect DNS queries on their way to the resolver from being read or altered on that leg. They don’t encrypt the rest of your traffic and don’t hide queries from the DNS operator itself. If the network blocks the chosen resolver or encrypted DNS, switching modes can leave your device unable to resolve names at all.

A simple troubleshooting order: test several sites and a different network, then change only the DNS and test again. If some resources start working, that points to a possible name-resolution problem, but doesn’t prove the cause. Don’t replace HTTPS checks with typing a site’s IP by hand: one address can host different sites, and the certificate is checked against the name.

How to use a DNS server instead of a VPN

It’s more accurate to say “set up a different DNS”: you can’t turn a DNS server into a VPN by changing a single address. Before you start, write down your current settings. On a work device, custom DNS can break access to internal company names, so take your administrator’s settings into account. Change one setting at a time so you can easily switch back to automatic DNS if something goes wrong.

Which DNS servers you can use

  • Cloudflare: 1.1.1.1 and 1.0.0.1 — public name resolution. Don’t confuse the basic option with the separate family-filtering addresses. Instructions and modes are described in the Cloudflare documentation.
  • Google Public DNS: 8.8.8.8 and 8.8.4.4 — a public recursive DNS. It doesn’t replace a VPN and isn’t designed to hide your original IP. Addresses and setup steps are at Google.
  • AdGuard DNS: 94.140.14.14 and 94.140.15.15 — an option that filters ad and tracking domains. The service has other modes, including a non-filtering one; pick the addresses from the official instructions. DNS filtering doesn’t remove every ad inside a page.

These are IPv4 addresses. If your device uses IPv6, check its DNS settings too, following the chosen operator’s documentation. Don’t disable IPv6 blindly. Use a pair of addresses from the same operator so filtering stays consistent.

How to set up DNS on Windows

  1. In Windows 11, open Settings → Network & internet, then the properties of the Wi-Fi or Ethernet connection you’re using.
  2. Find “DNS server assignment”, click “Edit”, choose Manual and turn on IPv4.
  3. Enter the preferred and alternate addresses from the same service. Save the changes and reopen the site.
  4. If needed, configure IPv6 and any available DNS encryption separately. Simply filling in the IP fields doesn’t turn on DoH automatically in every version of the system.

In Windows 10, the path usually goes through the network adapter’s properties and “Internet Protocol Version 4 (TCP/IPv4)”: choose “Use the following DNS server addresses”. You don’t need to change the computer’s own IP address or gateway. Detailed steps for both versions are available from Cloudflare. To undo, switch back to automatic DNS assignment. Note that a browser with its own secure DNS may ignore the system setting.

How to set up DNS on Android

On Android 9 and later, look in settings for “Private DNS”. Choose the provider hostname option and enter, for example, one.one.one.one for Cloudflare. A hostname is required here — not 1.1.1.1 and not a link starting with https://. Save the setting. Menu names depend on the phone manufacturer; Cloudflare’s Android guide describes this mode.

Private DNS uses DoT and usually applies on both Wi-Fi and mobile data. If the internet stops working after you turn it on, switch back to “Automatic” and check whether the server is reachable on that network. On older versions, manual DNS for Wi-Fi may require static connection settings; don’t copy someone else’s IP and gateway. For such devices, follow the manufacturer’s instructions and keep a note of the original values.

How to set up DNS on iPhone

Open Settings → Wi-Fi → the info button next to the connected network → Configure DNS → Manual. Replace the existing DNS servers with your chosen pair of addresses and save. This setting applies to that specific Wi-Fi network, not to mobile data as a whole. You can restore the original behaviour by choosing Automatic.

Entering IPs manually in this menu doesn’t, by itself, enable DNS encryption. For encrypted DNS on other connections, you need a suitable profile or app from a trusted provider. Don’t install unknown management profiles or certificates. Cloudflare has a separate guide for iOS; the DNS mode and the WARP mode in its app do different jobs.

Which is better: DNS or a VPN

If you need to fix a name-resolution failure or filter some domains, start with DNS. If you need a different exit IP or a secure route for your device’s traffic, choose a VPN. Whether a VPN or a DNS server is better depends on the task. Check the result separately — whether pages open, your public IP and the DNS the app actually uses.

DNS and a VPN can be used together, but a VPN client often assigns its own resolver. Overriding it manually can break internal names or send DNS queries outside the tunnel. Start with the VPN’s default settings and make changes according to its documentation. Check how it behaves after reconnecting and when switching between Wi-Fi and mobile data.

For tasks that ordinary DNS can’t handle, MeduzaVPN offers a VPN connection, including over WireGuard and OpenVPN. See the terms and available options on the pricing page. Changing DNS doesn’t create such a tunnel, and having a VPN doesn’t replace HTTPS, system updates or care when choosing which sites to visit.

Get a VPN that's truly yours

Spin up a personal VPN on your own server in minutes — with a 15-day refund if it's not for you.

Company Information

IPFB LLC

1207 Delaware Ave #1262, Wilmington, DE 19806

Documents
Terms of serviceRefund & cancellation policyPrivacy policy
Part of the Baxet family
Pages
PERSONALYour personal VPN serverBusinessPricingDownloadFeaturesServersWhat is a VPN?Knowledge baseMeduzaVPN vs Amnezia VPNSecurityNewsReviewsPartner programmeFor partners: bloggers and websitesAbout usContactsSupport
Social Networks

Telegram community

The group administrator replies in the community.

Join the community
Support
Help Centerme@meduzavpn.com
Solutions
PCAndroidiPhoneMacLinuxRouterWireGuardVLESSHysteria 2ShadowsocksSOCKS5TelegramYouTubeInstagramDiscord
Countries
RussiaNetherlandsUSAGermanyUAETurkeySingaporeFinlandUnited Kingdom
Apps
Google PlayAndroidApp StoreiPhone, iPad & MacDownload for WindowsWindowsOpen in TelegramNo install needed

Trustpilot

Your experience matters

Read customer reviews or share your experience with MeduzaVPN. All honest feedback is welcome.

Read reviews ↗
Trustpilot

The widget loads from Trustpilot and may use cookies. Privacy policy