What Is DNS in Web Browsing? How Your Browser Finds a Website

DNS stands for Domain Name System. It translates names such as example.com into numeric IP addresses that computers use to connect. Without DNS, you would need to remember server numbers instead of website names.

Does this affect you?

Use this for any browser and device when DNS appears in an error message or troubleshooting guide. DNS happens before the browser can connect to the website itself.

What happens in the moment you hit Enter

The lookup is usually fast enough that you never notice it.

  1. You type a website address and press Enter.
  2. The browser checks whether it already has a recent DNS result saved.
  3. If not, your device asks a DNS resolver. This is usually run by your internet provider unless you set one such as 1.1.1.1 or 8.8.8.8.
  4. The resolver finds the matching IP address, often using its own cache or asking other DNS servers along the way.
  5. The browser receives the IP address and connects to the website server.
  6. The answer is cached for a set time so the next visit can skip much of the lookup.

More control

DNS errors happen before the site loads

Errors such as DNS_PROBE_FINISHED_NXDOMAIN in Chrome or server not found in Firefox mean the name lookup failed. The browser did not get far enough to connect to the website server.

Public DNS may behave differently from ISP DNS

Public DNS services such as Cloudflare 1.1.1.1 or Google Public DNS 8.8.8.8 can sometimes be faster or more reliable than a default provider DNS. Some services also offer filtering versions that block malware or adult content before a browser loads the site.

DNS has a privacy angle

Whoever runs your DNS resolver can generally see the domain names you look up, even when the website connection itself uses HTTPS. DNS over HTTPS, available in modern browsers, encrypts the DNS lookup so it is not sent in plain text.

Browser cache and DNS cache are different

Clearing the browser cache removes page files such as images and scripts. It does not necessarily clear saved DNS lookups. Browsers and operating systems usually have separate ways to flush DNS cache when a site recently moved and your device still has the old address.

Sources

  • Cloudflare Learning Center – What is DNS? (2025)
  • Google Public DNS – How Google Public DNS works (2025)
  • MDN Web Docs – What happens when you type a URL into your browser? (2025)
Disclosure: This post may contain affiliate links which means I may receive a commission for purchases made through links. I will only recommend products that I have personally used! Learn more on my Private Policy page.
A thoughtful woman reads a newspaper while enjoying coffee at an indoor workspace.

DEALWEEK

SUBSCRIBE AND GET 20% OFF YOUR NEXT ORDER! OFFER ENDS SOON - DON’T MISS OUT!

We don’t spam! Read our privacy policy for more info.

Shopping Cart