What Is DNS? How It Works and When to Change Servers
earn what DNS does, how it connects website names to IP addresses, and when changing DNS servers may help. Explore common errors, privacy options, and steps to test your connection before you switch.
On this page
- What Is DNS? How DNS Works and When Changing DNS Servers May Help
- What Is DNS in Simple Terms?
- How Does DNS Work?
- Recursive DNS vs Authoritative DNS
- What Are DNS Records?
- Why DNS Caching Matters
- When Changing DNS Servers May Help
- When Changing DNS Will Not Fix the Problem
- Public DNS Services You Can Compare
- DNS Privacy: DoH, DoT, and DNSSEC Explained
- How to Check Whether DNS Is Causing a Problem
- How to Change DNS Without Losing Track of Your Settings
- How to Judge Whether the Change Helped
- Frequently Asked Questions
- Change DNS for a Clear Reason
- Further Reading

What Is DNS? How DNS Works and When Changing DNS Servers May Help
You enter a website address, press Enter, and expect the page to appear. Before your browser can connect, it usually needs to find the network address associated with that website's name. DNS helps make that happen.
DNS stands for Domain Name System. It lets people use recognizable names instead of remembering the numerical addresses computers use to communicate.
When DNS works properly, you rarely notice it. When it fails, websites may appear unavailable even though your device is connected to WiFi. Changing DNS servers can help in some situations, but it is not a universal solution for slow internet.
What Is DNS in Simple Terms?
The Domain Name System is a distributed naming system. One of its main jobs is finding IP addresses associated with domain names.
Think of a contact list on your phone. You choose someone's name, and the phone uses the stored number. DNS serves a similar purpose for internet names, although the information is distributed across many servers rather than kept in one global contact list.
For a web address such as https://example.com/help,
DNS looks up the hostname example.com. It does not
retrieve the /help page or search the website's content.
Your browser handles those steps after finding a destination.
How Does DNS Work?
A DNS lookup often finishes quickly because useful information is already cached. When it is not, several parts of the DNS system cooperate to find an answer.
- Your device checks for a saved answer. The browser or operating system may already have usable DNS information.
- A recursive resolver receives the request. This service finds an answer on your behalf, using its cache or asking other DNS servers.
- Root servers provide a starting direction. For a name ending in .com, they can direct the resolver toward the relevant top-level domain servers.
- The top-level domain servers provide another referral. They identify the authoritative nameservers responsible for the domain.
- An authoritative server supplies the relevant records. The response may contain an address or information requiring another lookup, such as an alias.
- The resolver returns the result. Your device can then attempt a connection to the destination.
This is a simplified example of a lookup without the necessary information already cached. Most visits do not require every step. Finding an address also does not guarantee that the destination server is available.
Recursive DNS vs Authoritative DNS
These two roles are easy to confuse, especially because some companies provide both services.
| Server role | What it does | Who usually configures it? |
|---|---|---|
| Recursive resolver | Finds and caches DNS answers for users and their devices. | The device owner, network administrator, or internet provider. |
| Authoritative nameserver | Publishes the DNS records for a domain or DNS zone. | The domain owner or organization managing the domain. |
When a home user changes DNS settings to a public service, they normally change the recursive resolver. They are not moving their website, changing their domain's nameservers, or editing its published records.
What Are DNS Records?
DNS stores different kinds of information, not just website addresses. You do not need to memorize record types to change a home DNS setting, but recognizing a few makes troubleshooting easier.
| Record | Purpose |
|---|---|
| A | Associates a name with an IPv4 address. |
| AAAA | Associates a name with an IPv6 address. |
| CNAME | Makes one name an alias of another name. |
| MX | Identifies mail servers for receiving a domain's email. |
| TXT | Stores text used for purposes such as verification and email policies. |
A hostname may have several addresses, and different users can receive different valid answers. Large services often use DNS as one part of directing visitors toward suitable infrastructure.
Why DNS Caching Matters
A cache stores information temporarily so that repeated requests can be answered without starting the lookup again.
DNS records include a time-to-live value, or TTL, that governs how long they can normally remain cached. A TTL of 300 seconds, for example, represents five minutes.
Caching improves efficiency, but it also explains why a website address change may not appear everywhere immediately. Different resolvers can still hold older answers until those entries expire.
Clearing your computer's DNS cache affects that local cache. It does not clear every browser cache, your provider's resolver cache, or cached answers across the internet.
When Changing DNS Servers May Help
Your current resolver is failing
If your configured DNS service repeatedly times out while another reachable resolver answers correctly, switching may restore access. This can happen even when the underlying internet connection is working.
Check more than one website before drawing a conclusion. A problem affecting one domain may belong to that domain's DNS configuration rather than your resolver.
DNS lookups are unusually slow
A slow resolver can delay the beginning of connections. A more responsive service may make browsing feel quicker, particularly when pages use resources from several hostnames.
The improvement is usually in lookup delay, not the bandwidth available for transferring files. If your existing DNS already responds reliably and quickly, you may notice little difference.
You want specific filtering features
Some resolvers block domains associated with malware or offer family-oriented filtering. Choosing one can add a useful layer of protection for compatible devices using that service.
Filtering can produce false positives, and it cannot identify every unsafe website. It also does not replace software updates, secure accounts, or appropriate device-level controls.
You prefer another privacy policy or encrypted DNS option
Changing providers lets you choose who handles your DNS queries. Review the service's logging, retention, and data-use policies rather than assuming all public DNS services work identically.
Encryption is a separate setting to check. Entering a provider's numerical addresses does not, by itself, guarantee that your device uses encrypted DNS.
When Changing DNS Will Not Fix the Problem
| Problem | Why DNS is unlikely to solve it |
|---|---|
| Weak WiFi signal | DNS does not improve the radio connection to your router. |
| Internet provider outage | Your device still needs a working route to internet services. |
| A low-speed internet plan | A resolver does not increase your subscribed bandwidth. |
| A saturated upload | Other traffic still competes for the available capacity. |
| A website's server is offline | Finding its address does not make that server respond. |
| Incorrect authoritative DNS records | The domain owner generally needs to correct the published data. |
DNS can sometimes influence which content delivery server you reach. That may change performance, but the effect varies and can be positive or negative. It is not a reliable shortcut to faster downloads or lower gaming ping.
Public DNS Services You Can Compare
The following are examples, not a universal speed ranking. Performance depends on your network, location, and the provider's infrastructure. The addresses below are IPv4 resolver addresses.
| Service | Resolver addresses | Feature to consider |
|---|---|---|
| Cloudflare standard DNS | 1.1.1.1 and 1.0.0.1 |
General-purpose resolution without content filtering. |
| Google Public DNS | 8.8.8.8 and 8.8.4.4 |
General-purpose public resolution with encrypted DNS options. |
| Quad9 threat-blocking service | 9.9.9.9 and 149.112.112.112 |
Blocks domains identified as malicious by its threat intelligence. |
Use a matching pair for the service you intend to use, especially when filtering matters. Devices do not always treat the second listed server as an emergency-only backup, so mixing filtered and unfiltered providers can produce inconsistent behavior.
These providers also publish IPv6 and encrypted DNS configuration details. Follow their setup instructions for your network. Do not disable IPv6 simply to make DNS configuration easier.
DNS Privacy: DoH, DoT, and DNSSEC Explained
DNS over HTTPS, or DoH, and DNS over TLS, or DoT, encrypt DNS communication between your device and the resolver.
This helps prevent observers on that path from directly reading or modifying those DNS messages. The resolver still receives your queries, and other connection information may remain visible to network operators.
Encrypted DNS is not a VPN. It does not hide your public IP address from the websites you visit or encrypt all application traffic.
DNSSEC serves a different purpose. It uses digital signatures to help validating resolvers authenticate DNS data for signed domains. It does not encrypt the lookup or prove that a website's content is trustworthy.
How to Check Whether DNS Is Causing a Problem
Start with the basic connection
Try several websites and another device on the same network. If nothing can get online, check your router, internet service, and network connection before changing DNS.
Messages such as "DNS server not responding" are useful clues, but a timeout can also result from a connection problem that prevents the DNS request from reaching its destination.
Compare a lookup using another resolver
On Windows, open Command Prompt and enter the following commands one at a time:
nslookup example.com
nslookup example.com 1.1.1.1
The first uses the tool's default DNS server. The second directs that lookup to Cloudflare. These commands do not permanently change your device's DNS settings.
If the first repeatedly fails and the second succeeds, investigate the configured resolver or the route to it. If both fail, the cause may be broader connectivity, filtering, or the queried domain. Test more than one known working name.
Different valid addresses are not automatically evidence of a problem. Also, a browser using its own encrypted resolver may behave differently from this command-line test.
How to Change DNS Without Losing Track of Your Settings
Begin with one personal device. This makes it easier to compare results and undo the change before applying it across your home.
- Record the original configuration. Note whether DNS is automatic or manually configured.
- Choose the service you want to test. Review its official instructions and filtering behavior.
- Change DNS for the active connection. Modify DNS assignment, leaving unrelated IP address and gateway settings unchanged.
- Check encrypted DNS options. Use the provider's documented hostname or endpoint where required.
- Reconnect and test. Reopen the affected websites and confirm that normal apps still work.
- Restore the original settings if necessary. Return to automatic DNS or re-enter the values you recorded.
Router-level changes can affect devices using the router's DNS configuration, but browsers, VPNs, and manually configured devices may use different resolvers.
On managed workplace or school devices, retain the organization's required configuration. Public resolvers may not know internal names needed for company services.
How to Judge Whether the Change Helped
Focus on the original symptom. Do previously failing websites open reliably? Has the delay before pages begin loading improved? Test over several sessions rather than relying on one refresh.
Caching makes quick comparisons tricky. A second visit can be faster simply because the answer or page content is already stored. One successful lookup does not establish which provider is fastest.
You can use the WiFi Speed Test tool to check overall connection performance, but download and upload results do not directly measure DNS lookup speed.
If browsing becomes reliable while Mbps stays the same, that can still be a useful improvement. DNS performance and transfer capacity measure different parts of the experience.
Frequently Asked Questions
1. Will changing DNS make my internet faster?
It may reduce lookup delays or resolve failures caused by your current resolver. It does not increase your internet plan's bandwidth or guarantee faster downloads.
2. Is using public DNS better than my provider's DNS?
Not necessarily. Your provider's resolver may already be fast and reliable. Compare reliability, privacy policies, filtering, and compatibility before deciding.
3. Does changing DNS change my public IP address?
Changing only your DNS resolver normally does not change the public IP address websites see. A separate VPN or proxy service works differently.
4. Why does my browser ignore my router's DNS settings?
The browser may use its own Secure DNS or DNS over HTTPS provider. A VPN, device profile, or manually configured connection can also select a different resolver.
5. How long does a DNS server change take to work?
New lookups can use the new resolver once the settings apply, sometimes after reconnecting. Existing caches and browser settings may delay visible changes. This differs from waiting for a website owner's DNS record updates to reach cached users.
Change DNS for a Clear Reason
DNS makes internet names usable by helping devices find the information they need to connect. A reliable resolver matters, but it is only one part of a working connection.
Change servers when testing points toward a DNS problem or when another service offers features you want. Use an internet speed test alongside lookup checks to distinguish DNS delays from broader network performance problems.
Further Reading
- Cloudflare: What DNS is and how lookups work
- Google: Public DNS configuration instructions
- Cloudflare: Resolver addresses and filtering options
- Quad9: Service addresses and features
- Mozilla: DNS over HTTPS settings in Firefox
- Microsoft: Using nslookup for DNS troubleshooting
- ICANN: Understanding DNSSEC
How is your connection doing?
Measure download, upload, and response time on the device you use every day.
Test your internet speed ↗
