---
title: "What is DNS? How a web address turns into a website, and when changing DNS helps"
url: https://protergates.com/guides/what-is-dns-and-how-it-works/
published: 2026-11-19
updated: 2026-11-19
---

# What is DNS? How a web address turns into a website, and when changing DNS helps

> DNS is the internet's phone book. It turns names like example.com into the numeric addresses computers use. How resolvers and caching work, and when changing DNS speeds up or protects browsing.

- URL: https://protergates.com/guides/what-is-dns-and-how-it-works/
- Section: Guides
- Author: Oliver Schmidt, Senior Software Engineer (https://protergates.com/expertise/#oliver-schmidt); Giorgi Beridze, Technology Solutions Architect (https://protergates.com/expertise/#giorgi-beridze)
- Published: 2026-11-19
- Last updated: 2026-11-19
- Topics: dns, internet, privacy, wi-fi, networking, online security
- Reading time: 8 min
- Cite as: Oliver Schmidt and Giorgi Beridze, "What is DNS? How a web address turns into a website, and when changing DNS helps", Protergates, November 19, 2026, https://protergates.com/guides/what-is-dns-and-how-it-works/

## In short

**DNS**, the **Domain Name System**, is the internet's phone book. Computers find each other using numeric **IP addresses**, but people remember names like example.com. When you type a web address, your device asks a **DNS resolver** which IP address belongs to that name, gets the answer back, and only then connects to the website.

This lookup usually takes a fraction of a second and happens many times a day without you noticing. Changing which resolver you use can occasionally make sites start loading a little sooner, and using **encrypted DNS** or a resolver that blocks known malicious sites can add privacy and protection. It will not fix slow Wi-Fi or replace good security habits.

## Why the internet needs DNS

Every device online has an IP address, a bit like a street address. An older style IPv4 address looks like 192.168.1.1; the newer IPv6 style is a much longer mix of numbers and letters. Cloudflare's learning center describes DNS as the system that saves people from memorizing these numbers.

Without DNS you would have to type numbers to visit every site, and sites could not easily move to new servers without everyone updating their bookmarks. With DNS, a website can change its address behind the scenes and its name keeps working.

## The four kinds of DNS server

Cloudflare describes four kinds of DNS server involved in loading a web page. A library analogy makes it easier:

| Server | What it does | Library analogy |
|---|---|---|
| Recursive resolver | Takes your device's question and does the legwork to find the answer | The librarian you ask for a book |
| Root nameserver | Points to the right server for the ending, such as .com or .org | The index that tells you which aisle |
| TLD nameserver | Knows which servers handle each name ending in, for example, .com | The right shelf in that aisle |
| Authoritative nameserver | Holds the actual address record for the domain | The book with the answer |

The **resolver** is the one you choose, even if you never knew it. By default your home router hands your devices the resolver run by your internet provider.

## What happens when you type a web address

Here is the full journey when nothing is remembered yet, based on Cloudflare's explanation:

1. You type **example.com** in your browser.
2. Your device sends the question to its **recursive resolver**.
3. The resolver asks a **root server**, which replies with the address of the server for **.com**.
4. The resolver asks the **.com server**, which replies with the address of example.com's own nameserver.
5. The resolver asks that **authoritative nameserver**, which replies with the IP address for example.com.
6. The resolver sends the IP address back to your device.
7. Your browser connects to that IP address and asks for the page.

That sounds like a lot of steps, and it would be slow if it happened every time. It does not, thanks to caching.

## Caching: why most lookups are instant

**Caching** means keeping a copy of a recent answer so you do not have to ask again. Cloudflare explains that DNS answers are cached in several places, each for a set time called the **TTL** (time to live) that the domain's owner chooses:

- **In your browser.** It checks its own memory first.
- **In your operating system.** A small built in DNS helper keeps its own list before asking anyone else.
- **At the resolver.** Your provider's resolver serves millions of people, so popular sites are almost always already in its memory.

Most of the time, the answer comes from a cache within milliseconds. The full journey only happens for rarely visited sites or after a cached answer expires.

Caching also explains a common puzzle: when a website moves to a new server, some people reach the new one right away while others still reach the old one for a while, until their cached answers expire.

## What your DNS provider can see

Every site you visit starts with a DNS lookup, so whoever runs your resolver can see **which website names you look up**, and when. By default that is your internet provider. On public Wi-Fi, traditional DNS lookups travel unencrypted, so the network operator may see them too.

DNS does not reveal what you do on a site. Most websites use HTTPS, which encrypts the page content, passwords and card numbers. But the names alone can reveal a lot about your interests. Our guide on [how a VPN works](https://protergates.com/guides/how-a-vpn-works-and-when-you-need-one/) covers another way to hide this from the local network.

## When changing DNS helps

You can switch from your provider's resolver to a public one run by another company, such as Cloudflare, Google or Quad9. Here is what that can and cannot do:

| Goal | Can changing DNS help? |
|---|---|
| Sites start loading a little faster | Sometimes, if your provider's resolver is slow. The gain is usually small. |
| Faster downloads or streaming | No. DNS only finds the address; it does not carry your data. |
| Hide lookups from the local network | Yes, if you use encrypted DNS. |
| Block known malicious or phishing sites | Yes, with resolvers that offer filtering. |
| Block adult content for children | Yes, with family filtering resolvers, though determined users can bypass it. |
| Stop all tracking or make you anonymous | No. |
| Fix a site that is down | No, unless your provider's resolver is the problem. |

Remember that switching **moves trust**: your new DNS provider can see your lookups instead of your internet provider. Read its privacy policy before you switch.

## Encrypted DNS

Traditional DNS sends questions in plain text. Encrypted DNS wraps them in encryption so others on the network cannot read or tamper with them. The two common forms are **DNS over HTTPS (DoH)** and **DNS over TLS (DoT)**. Many browsers, Android and Windows 11 support them.

Google's Android help notes that Private DNS secures only DNS questions and answers and cannot protect anything else. Encrypted DNS is a useful layer, not a full privacy shield.

## How to check or change DNS on your devices

**Android (Android 12 and later on most phones):**

1. Open **Settings** and tap **Network & internet** > **Private DNS**. If you cannot find it, search Settings for "Private DNS".
2. Choose **Off**, **Automatic** or **Private DNS provider hostname**, and enter the hostname your chosen provider publishes.
3. Tap **Save**.

Google says Android uses Private DNS by default on all networks that support it and recommends keeping it on. Menus can differ by phone maker.

**Windows 11:**

1. Go to **Start** > **Settings** > **Network & internet**.
2. For Wi-Fi, select **Wi-Fi** > **Manage known networks** and pick your network. For a wired connection, select **Ethernet** and your network.
3. Next to **IP assignment**, select **Edit**.
4. Under **Edit IP settings**, choose **Manual**, turn on **IPv4**, and type the addresses in **Preferred DNS** and **Alternate DNS**.
5. For **DNS over HTTPS**, choose an **On** option if your provider supports it. Microsoft notes this setting is not available in Windows 10.
6. Select **Save**.

Microsoft's instructions put DNS on the same screen as your IP address settings, and choosing **Manual** there means filling in those IP details yourself. If that feels unfamiliar, leave it on **Automatic (DHCP)**, which Microsoft recommends, and change DNS on your router instead. To undo a change, return to the same screen and choose **Automatic (DHCP)**.

**Your whole home at once:** many routers let you set the DNS server for every device on the network in their admin page. Our guide to [securing your home Wi-Fi router](https://protergates.com/guides/how-to-secure-your-home-wi-fi-router/) explains how to reach those settings safely.

Always take resolver addresses and hostnames from the provider's own official setup page, not from a forum post or a pop up ad.

## When DNS is the cause of a problem

A DNS problem has a recognizable pattern. Your Wi-Fi icon shows full bars and apps that are already open keep working, but new websites refuse to load and your browser shows an error saying the server address or name could not be found. Because the address book is unreachable, your device knows how to send data but not where.

Simple checks, in order:

1. **Try another website.** If only one site fails, the problem is probably that site, not DNS.
2. **Try another device on the same network.** If every device fails, restart the router, which also resets the DNS settings it hands out.
3. **Switch to mobile data briefly.** If sites load there, the issue is on your home network or provider.
4. **Undo recent DNS changes** by setting your device back to automatic.

## Common mistakes

- **Expecting faster downloads.** DNS affects how quickly a site starts loading, not how fast data flows.
- **Using a DNS address from an unknown source.** A malicious resolver could send you to fake websites. Use only well known providers and their official pages.
- **Forgetting about work or school networks.** Some employers and schools need their own DNS to reach internal sites. If something breaks after a change, switch back to automatic.
- **Assuming encrypted DNS makes you invisible.** The websites you visit and your internet provider can still see your connections.
- **Changing DNS to fix every problem.** If pages will not load anywhere, the cause is more often Wi-Fi or the provider's line. Our guide on [how Wi-Fi works](https://protergates.com/guides/how-wi-fi-works/) helps you tell the difference.

## The short version

DNS turns names into numbers so your browser knows where to go. A resolver does the lookup, asking root, TLD and authoritative servers when it has to, and caches answers so most lookups are instant. Changing to a reputable public resolver, ideally with encrypted DNS turned on, can add privacy and block some malicious sites, and sometimes shaves a moment off page loads. It is a helpful layer, but strong passwords, updates and care with links still do most of the work of keeping you safe.

## Frequently asked questions

**Q: What is DNS in simple terms?**

A: DNS, the Domain Name System, is the phone book of the internet. It translates names people can remember, like example.com, into IP addresses, the numbers computers use to find each other.

**Q: What is a DNS resolver?**

A: A DNS resolver is the server that answers your device's question about which IP address belongs to a name. By default it is usually run by your internet provider. It asks other DNS servers on your behalf and remembers answers for a while.

**Q: Will changing my DNS make the internet faster?**

A: Sometimes a little. A fast, nearby resolver can make the first visit to a site start sooner, but DNS is only the first step of loading a page. It will not raise your download speed or fix weak Wi-Fi.

**Q: Can changing DNS protect me?**

A: It can help. Encrypted DNS hides your DNS lookups from others on the network, and some resolvers block known malicious sites. It does not encrypt the rest of your traffic or stop scams on legitimate looking sites.

**Q: What is Private DNS on Android?**

A: It is Android's encrypted DNS setting. Google says Android uses Private DNS by default on networks that support it and recommends keeping it on. You can find it under Settings, Network & internet, Private DNS.

**Q: Is it safe to change my DNS server?**

A: Yes, if you choose a reputable provider. Your DNS provider can see which sites you look up, so pick one with a clear privacy policy. You can switch back to automatic at any time.


## Sources

1. [Cloudflare Learning Center: What is DNS?](https://www.cloudflare.com/learning/dns/what-is-dns/)
2. [Microsoft Support: Essential Network Settings and Tasks in Windows](https://support.microsoft.com/en-us/windows/essential-network-settings-and-tasks-in-windows-f21a9bbc-c582-55cd-35e0-73431160a1b9)
3. [Android Help: Manage advanced network settings on your Android phone](https://support.google.com/android/answer/9654714?hl=en)
