Networking Guide
What Is DNS and How Does It Work?
DNS, or the Domain Name System, helps your devices find websites and other internet services. Instead of requiring you to remember an IP address for every website you visit, DNS lets you use familiar domain names such as example.com.
The short version
DNS translates domain names into the IP addresses computers use to communicate. When you enter a website address, your device usually performs or relies on a DNS lookup to learn where that website can be reached.
What does DNS stand for?
DNS stands for Domain Name System. It is a distributed system used to associate domain names with information needed to locate internet services.
One of its most familiar jobs is connecting a domain name with an IP address. This allows people to use memorable names while computers communicate using network addresses.
Why do we need DNS?
Imagine having to remember a numeric IP address every time you wanted to visit a website. That would be inconvenient, and it would also create problems whenever a website changed servers or addresses.
DNS creates a layer between the name people use and the network location used by computers. A website can therefore change its underlying infrastructure while continuing to use the same domain name.
What happens when you type a website address?
The exact process varies depending on your device, browser, network, and cached information, but a simplified DNS lookup often looks like this:
- You enter a domain name into your browser.
- Your device checks whether it already has a usable DNS result cached.
- If necessary, a DNS resolver is asked to find the appropriate DNS information.
- The resolver obtains or retrieves the DNS record needed for the request.
- Your device receives the result and can attempt to connect to the destination.
In practice, caching at several levels can make this process much faster than performing every lookup step from the beginning.
What is a DNS resolver?
A DNS resolver is a service that handles DNS queries on behalf of a device. Your internet provider may supply a resolver automatically, or your device or network may be configured to use another DNS provider.
The resolver may already know the answer from its cache. If not, it can query other parts of the DNS system to obtain the information needed to answer the request.
What are DNS records?
DNS stores different types of records for different purposes. Records can identify IP addresses, mail servers, aliases, and other information associated with a domain.
We looked up our own domain
DNS records are easy to check yourself, and doing it once makes the table above much more concrete. While building our IPv6 Test, we noticed it reported IPv4 for every visitor, even on connections we knew supported IPv6. So we asked DNS whether iseemyip.com had an IPv6 address by looking up its AAAA record from a Windows PC:
PS> Resolve-DnsName iseemyip.com -Type AAAA Name Type TTL Section PrimaryServer NameAdministrator SerialNumber ---- ---- --- ------- ------------- ----------------- ------------ iseemyip.com SOA 600 Authority ns47.domaincontrol.com dns.jomax.net 2026090401
We asked for an AAAA record and got back a different record type, SOA. That is DNS's way of saying “this name exists, but it has no record of the type you asked for.” There was no line with an IPv6 address, so iseemyip.com had no IPv6 address at all.
The rest of the line is useful too:
- SOA stands for Start of Authority. It describes who is in charge of the domain's DNS. The resolver included it in the Authority section as proof that it checked with the right source before answering “no.”
- ns47.domaincontrol.com is the primary name server for the domain. Domaincontrol.com name servers belong to GoDaddy, where our domain is registered.
- TTL 600 means resolvers may cache this “no AAAA record” answer for 600 seconds (10 minutes) before asking again. Negative answers are cached just like positive ones.
- SerialNumber 2026090401 is a version number for the domain's DNS records. Many providers use a date format, so this one reads as September 4, 2026, change 01. It goes up every time the records are edited.
The missing AAAA record explained our test results. If a domain has no IPv6 address, every browser has to connect to it over IPv4, so a test that only looks at how you reached the site can never see IPv6. We rebuilt our test to check IPv6 a different way, which we explain in our IPv4 vs. IPv6 guide.
Try it on any domain
Replace example.com with any domain name. In Windows PowerShell:
Resolve-DnsName example.com -Type A Resolve-DnsName example.com -Type AAAA
On a Mac, Linux, or in Windows Command Prompt:
nslookup -type=A example.com nslookup -type=AAAA example.com
An A record answer lists IPv4 addresses, and an AAAA answer lists IPv6 addresses. If you only get back SOA information, or a message that there is no answer, the domain has no record of that type.
How does DNS relate to your IP address?
DNS and IP addresses are closely related, but they are not the same thing. An IP address identifies a network destination, while DNS provides a naming system that can help devices locate that destination.
Your own public IP address is the address internet services may see when your connection reaches them. DNS lookups, meanwhile, help your device determine where services on the internet are located.
You can see the public IP address detected for your current connection on the iSeeMyIP homepage.
What is DNS caching?
DNS results are commonly cached for a period of time so the same information does not have to be repeatedly retrieved from the DNS system.
Caching can occur in your browser, operating system, router, resolver, or elsewhere in the DNS path. How long a record is intended to remain cached is influenced by its TTL, or time to live.
This is one reason a DNS change may not appear everywhere immediately. Different systems may still have an earlier result cached until it expires or is refreshed.
Can changing DNS make the internet faster?
A responsive DNS resolver can reduce the time required for some name lookups, particularly when a result is not already cached. However, DNS is only one part of the process involved in loading a website.
Changing DNS does not directly increase the bandwidth or maximum connection speed provided by your internet service. Website performance also depends on latency, routing, the destination server, your local network, and many other factors.
Can DNS affect privacy?
DNS queries can reveal which domain names a device is attempting to resolve. Who can observe those queries depends on how DNS is configured and whether the queries are protected in transit.
Technologies such as DNS over HTTPS and DNS over TLS can encrypt DNS traffic between a device or application and a compatible DNS resolver. That does not make all internet activity anonymous, and it does not hide your public IP address from websites you ultimately connect to.
What is a DNS leak?
The phrase DNS leak is commonly used when DNS requests are sent through a resolver or network path that the user did not expect, especially while using a VPN.
For example, someone may expect DNS queries to use a resolver provided through a VPN connection but discover that some requests are still reaching another resolver.
We'll cover this situation in more detail in our dedicated DNS leak guide.
Does DNS hide your IP address?
No. DNS translates or provides information about names and network destinations. Simply changing your DNS resolver does not replace the public IP address websites see when you connect to them.
Technologies such as VPNs work differently. A VPN can route internet traffic through another network so websites may see the VPN server's public IP address rather than the public IP address normally used by your connection.
Common DNS problems
DNS problems can sometimes make it appear that your internet connection is broken even when the underlying network connection is still working.
- A domain name fails to resolve.
- A recently changed DNS record still returns old information.
- A configured DNS resolver is unavailable or slow to respond.
- A VPN, router, browser, or operating system is using a different resolver than expected.
- A local DNS cache contains outdated information.
DNS is only one possible cause of connection problems, so failed website access does not automatically mean DNS is responsible.
Keep Exploring
Understand the rest of your connection
DNS is only one layer of internet networking. These guides and tools can help explain the addresses and protocols involved in your connection.