What is a DNS Server and Which Are Safe to Use?

Person using computer in between two servers
Click here for a short summary
In a Nutshell: What is a DNS Server and Are They Safe to Use?

The Domain Name System (DNS) is one of the foundations of internet use. Since computers only know numbers, DNS serves as an online directory to match domain names like VPNOverview.com with their IP address counterparts. DNS servers are devices or programs that store millions of corresponding domains and their IP addresses across the globe.

An Internet Service Provider (ISP) usually sets up users with a DNS server, which, depending on the ISP, could be slow, insecure, or unreliable. Internet users may decide to change their primary DNS server for any one of these reasons, or may just be interested in trying a third party provider.

Many public DNS servers provide heightened security, faster speeds, and constant uptime, in addition to other features like content blocking. Some of the most popular choices are Google Public DNS (8.8.8.8. or 8.8.4.4.) Cloudflare (1.1.1.1. or 1.0.0.1), and OpenDNS (208.67.222.222 or 208.67. 220.220).

Want to know more about DNS servers and which are safe to use? Read the full article below.

Though the Domain Name System (DNS) is one of the cornerstones of the internet’s functionality, many users aren’t aware they use it every single day. Whether it’s browsing social media, checking email, or looking at the news, DNS is what you use to get where you’re going online. But how does it work? What is a DNS server? Which are safe to use? Can you switch servers? This article will answer all of these questions, and more.

What is DNS?

The concept of surfing the internet seems simple enough. You type www.VPNOverview.com into your browser, and bang, the website shows up on your screen and starts feeding you loads of information and content on internet privacy and cybersecurity. But there’s a little bit more to it, and we’ve got the Domain Name System (DNS) to thank for making it seem so simple. Every internet user and domain has an IP address. Think of it like a “virtual postal address.” The servers that handle your requests don’t actually understand domain names like VPNOverview.com – their language is numbers, and they only understand numeric IP addresses like 191.76.350.198.

Think about it like this: you may remember that one of your family members lives at 123 Overview Lane, and maybe even recall a few of your friends’ phone numbers and email addresses, but you probably can’t remember them all. There’s too many numbers. But you know everyone’s names, and can look them up in your contacts list on your smartphone. That’s what the DNS system is for. It’s like your contact list, but it matches domain names with numeric IP addresses.

What is a DNS Server?

Obviously, the contact list for the internet is way too large to store in a smartphone. According to Verisign, 2021 closed its first quarter with roughly 363.5 million domain registrations. All these domain names and corresponding IP addresses are stored on servers across the globe called DNS servers. DNS servers are devices or programs that answer domain queries from desktop or mobile devices, called DNS clients. So the DNS servers provide this service to DNS clients.

Take this scenario: You’re the DNS client. You enter VPNOverview.com into your desktop or mobile browser. A DNS server translates that domain name into an IP address and pulls up the correct site, all in under a second. Since DNS servers are constantly bombarded with DNS queries, the servers are always communicating with each other so they can catch redundancies and update data about websites. So with the DNS system, it doesn’t matter if the IP address or hosting of our site changes, DNS servers will always bring you back to the correct IP address so you can browse the latest from VPNOverview.com.

Why Would I Change My DNS Server?

Since you’re reading this, you’ve already used a DNS server to get here, whether you realized it or not. If you don’t know what DNS server you’re using, your internet service provider (ISP) likely provided it when you signed up. Though many internet users may never leave the DNS server provided by their ISP, others might opt to switch to a free, third party public DNS server instead for a variety of reasons.

Faster service

Third party providers often have more power behind their DNS servers, and provide a faster internet user experience. DNS server performance can depend on physical distance between the server and your Wi-Fi router, so remember location can be a factor for performance.

Privacy

As your current DNS server could be owned by your ISP, privacy might be a concern. If you’re on your ISP’s DNS server without a VPN (a service that allows you to change your IP and the server you use), not only can your ISP see your online activity, but depending on the provider, you could be set up on a DNS server that lacks privacy or desirable security measures. This could allow third parties to see your internet actions, or your ISP to use your online browsing history to return targeted advertising.

Reliability

We all dread those error messages and blank screens when we’re trying to pull up a website. A server provided by your ISP might not only be slower, but could be down more often. Users often switch to third party DNS providers because of uninterrupted uptime and more reliable service.

Filtering content

Your ISP’s DNS provider may not have sufficient parental controls. With some third party DNS servers, like OpenDNS, you can block inappropriate or explicit websites, as well as entire categories of websites at the source.

Security

With all the malware, phishing sites and other scams floating around the online world, security is more important than ever. You don’t want to wind up on a server controlled by a hacker. Some public DNS servers promote their advanced security and encryption protocols.

Can I Change My DNS Server?

Changing your current DNS service to a more secure DNS provider won’t harm your device or network. Your actions are reversible, and you can try different ones to see which works fastest for your specific location. Before you change your DNS settings, make sure to write down the current server addresses or settings somewhere, if there are any. If you do need to revert, you’ll need these numbers for backup.

Change your DNS server in Windows 10

  1. Open the Control Panel.
  2. Under “Network and Internet” select “View network status and tasks.”
  3. Select “Change Adapter Settings.”
  4. Right click “Network Adapter” and select “Properties.”
  5. Select “Internet Protocol Version 4 (TCP/IPv4)” and then “Properties.”
  6. Enter your preferred and alternate DNS server IP addresses (provided later in this article).
  7. Select “OK” when done.
  8. Test your browser with a new website query. Make sure your browser isn’t pulling from the cache by clearing it or browsing incognito. It may take ten to thirty seconds or so to lock in with the new DNS server.

Screenshot of Windows menu where you can change your DNS settings

  1. Select the Apple menu.
  2. Select “System Preferences“, then click “Network“.
  3. Select the connection you wish to configure (Wi-Fi or Ethernet), then click “Advanced“.
  4. Select the DNS tab.
  5. Click “+” to add a new IP address, or replace an address listed. Enter your preferred and alternate DNS server IP addresses (provided later in this article).
  6. Select “OK“, then “Apply” when done.
  7. Test your browser with a new website query. Make sure your browser isn’t pulling from the cache by clearing it or browsing incognito. It may take ten to thirty seconds to lock in with the new DNS server.

Screenshot of macOS Wi-Fi Settings

Screenshot of macOS DNS Settings

Which Public DNS Servers Are Best to Use?

If you think it might be time to make a switch to a third party DNS service provider, there are plenty to choose from. Some focus strictly on security and speed, while others offer different features. The DNS server that a user selects, completely depends on what they’re looking for. If you want to switch to any of the DNS servers below, you just have to change the server’s IP address in your router. There’s no sign up or registration necessary, unless you want to upgrade to a paid plan or use features like content filtering.

Though public DNS servers are able to track and store your every website query, and see every domain you request, there’s a reason for this. It’s so the servers can pull up your favorite sites from the cache faster by memory, and improve your user experience. Providers may log your internet activity for further use, however, so that’s something to consider for the privacy-conscious.

Google Public DNS

Google Public DNS LogoYou’re likely familiar with Google Search, Google Chrome, the Android OS and plenty of other Google products. Behind these applications is Google Public DNS, one of the fastest DNS servers available. It’s been available free for users for the past 10 years or so, with the easy-to-remember IP addresses of 8.8.8.8 and 8.8.4.4.

While you’re likely protected from hacks and cyber-attacks from the security a tech giant brings to the table, keep in mind Google is an advertising company which could track and monitor your activities for marketing purposes.

OpenDNS

OpenDNS LogoOpenDNS has been offering their free public servers for around the past fifteen years. The company does store your DNS web browsing activity and IP address information when you use their servers. Though OpenDNS does this for personalization and bettering the user’s overall experience, it’s something to consider for privacy-conscious users. They promote a free Family Shield server plan that households can use to block out content not suitable to children. Similar servers are also available for small businesses to block out malicious, inappropriate or even time-wasting sites.

Cloudflare

Cloudflare LogoThough newer to the scene than the other two big players, Cloudflare has made a name for themselves in the DNS space. Cloudflare provides DNS servers to some of the largest and most innovative companies today and include IBM, Shopify, Loreal, Doordash and Labcorp, among others. They offer heightened security and protection at the easy-to-remember IP addresses of 1.1.1.1 and 1.0.0.1. They have a free public DNS server, with the option to upgrade to monthly plans with paid add-ons starting at $20 and going up to the hundreds.

Uncensored DNS

UncensoredDNS LogoTwo public DNS servers based in Denmark have been available for use since 2009, free of charge. Thomas Steen Rasmussen – who used to administer censored DNS servers for ISPs to comply with Danish censorship requirements – funds and runs Uncensored DNS as kind of a pet project, and says the servers neither store any information about users nor how they use the system. They have encryption protocols against hackers, such as DoH and DoT, on their servers for extra security, though you’re essentially entering a handshake agreement that no one will log your info.

Quad9

Quad9 LogoQuad9 is another free public DSN server that touts speed and top notch security, and has been active since 2017. Run by the Quad 9 Foundation based in Switzerland, their mission statement is “to provide a safer and more robust Internet for everyone.” The service blocks lookups of malicious host names from a constantly updated list of threats. They reportedly make 60 million of these blocking actions per day.

Comodo DNS

Comodo LogoUsers can simply change their DNS server to Comodo’s IP address 8.26.56.26 or 8.20.247.20 for free service, or sign up for a free package that offers up to 300,000 DNS queries a month. If users want to upgrade to a business plan, there’s plenty of options to use additional features like full DNS traffic encryption, content filtering and advanced malware protection.

Free Public DNS ServersIP Addresses (IPv4)IP Addresses (IPv6)
Google Public DNS8.8.8.8
8.8.4.4
2001:4860:4860::8888
2001:4860:4860::8844
OpenDNS208.67.222.222
208.67. 220.220
2620:119:35::35
2620:119:53::53
Cloudflare DNS1.1.1.1
1.0.0.1
2606:4700:4700::1111
2606:4700:4700::1001
Uncensored DNS91.239.100.100
89.233.43.71
2001:67c:28a4::
2a01:3a0:53:53::
Quad 99.9.9.9
149.112.112.112
2620:fe::fe
2620:fe::9
Comodo DNS8.26.56.26
8.20.247.20

Should I Use Paid DNS or a Free DNS Service?

When you sign up for internet service, your ISP will provide you with a DNS server. Most free public DSN servers – like Google DNS, Cloudfare or OpenDNS – provide the average user the security and speed they need.

If you’re registering a domain for your own website, the registrar will also provide you a DNS server. Paying for premium is up to the user. You can imagine a DNS service provider like any other premium service. A paid service is going to give your website better, faster and more reliable service, and increased security.

If you’re a freelancer running a portfolio site to get more clients, it may not be necessary to pay for a premium service. But if you’re running a business or commercial site with high traffic that needs constant uptime and additional security for customers, you might benefit from premium features. Especially since basic services can be just a few extra dollars a month.

Which DNS server is the safest?

When it comes down to it, it’s really a matter of personal preference which DNS server you choose. Google Public DNS provides the speed and cybersecurity at the possible expense of storing your internet activity for later use. If you’re willing to trade speed for discretion, you could try Uncensored DNS.

If you need to block explicit content or sites you don’t want your children using, OpenDNS might make the best choice.

What’s of the utmost importance is finding a secure DNS server. If you’re using a server that’s vulnerable to hacks, you could fall victim to DNS cache poisoning, DNS spoofing or other DNS-related cyber-attacks.

The Dangers of an Unsafe DNS Server

Unfortunately, savvy hackers have been known to breach insecure DNS servers, and tap into security holes in the Domain Name System. There’s a variety of cyberattacks that can be used on vulnerable servers and DNS caches.

DNS cache poisoning and DNS spoofing

Your DNS cache is where your prior DNS queries and searches are temporarily stored on your operating system or browser. Keeping that local DNS information allows the OS or browser to more quickly and efficiently pull up and resolve a domain and IP query.

DNS cache poisoning will trick servers into connecting to a malicious IP address by blitzing a DNS resolver cache with fake addresses that correspond to a DNS query. If successful and once in the cache, the user could be lead to a fake site – let’s say a fraudulent PayPal site– where they might enter sensitive and personal financial information. At this point, the scam is also known as DNS spoofing, since you’ve now been lead to a “spoofed” site as you’re cache has been “poisoned.”

This is why it’s necessary to keep an eye on your browser when you visit sites that require sensitive personal information. The spoofed URL in the browser won’t actually say PayPal.com, but rather a variation like yourbestpaypall.com or something different altogether.

DNS hijacking and redirection

DNS hijacking is when hackers physically change DNS settings using different methods. DNS spoofing could be accomplished this way. There are several ways DNS hijacking can occur:

  • Hijacked DNS Server — cybercriminals can hack an insecure DNS server, and change settings and records to redirect DNS requests to malicious sites. At this point, anyone using this DNS server is using one that’s been taken over by a hacker.
  • Hijacked DNS Router — perpetrators can take over a router and change DNS settings. This would affect any devices using the router and redirect them to dangerous sites.
  • Hijacked Local DNS — hackers install Trojan malware on a user’s device and alter local DNS settings. This will take users to malicious sites.

Some ISPs can even use a form of this method to hijack a user’s DNS requests, collect data and then return advertising. Some authoritarian governments use forms of DNS hijacking to enforce censorship and redirect users to government-approved sites.

All of the third party DNS services providers mentioned above have extensive security to avoid attacks like this, but your ISP’s DNS server may not.

DNS leaks

A DNS leak refers to a situation where a user’s VPN connection has functioned improperly, and the user’s data is now transmitted out of the secure connection. This means that the user’s data can be accessed by their ISP or another third party.

If you use a VPN server, your DNS request is sent to an anonymous server through the VPN, which prevents your ISP from monitoring your actions. However, in a DNS leak, your browser will bypass the VPN and send your request to your ISP’s server. The danger is that users are typically unaware that a leak has occurred and think their private data is safe, even when it’s not.

What causes a DNS leak?

There are several reasons for DNS leaks, some more common than others:

  • Misconfigured VPN — Most commonly, a DNS leak is caused by a VPN service that was configured incorrectly on a device or operating system. For this reason, users should select a VPN service with cross-platform compatible clients.
  • OS incompatibility — Many OS devices have features that can meddle with DNS requests. In some, the problem may result from an improperly configured network or DNS server setting.
  • DNS hijacking — There’s also the possibility that a cybercriminal hacked into a user’s server, router or local device to send their data outside of the VPN tunnel, though this scenario is far less common.

How do I know if I have a DNS leak?

Generally, it’s difficult to tell if your computer is directing DNS requests through your ISP’s server instead of your VPN’s server. However, you can easily identify a DNS leak by using an online leak test. There are many different DNS leak tests available, such as www.dnsleaktest.com and www.ipleak.net. These tests are simple to run. With dnsleak.com, you just navigate to the website and locate the “Standard Test” or “Extended test” button.

DNSleaktest Website Screenshot

Either of these options will work, but the extended version runs a more in-depth test. Click on your preferred test, and the test will run and then display a results page. On the results page, you will see a list of DNS server IPs. If any of the IPs belong to your ISP, this indicates that your ISP can see your connection and track your private data or online actions. However, if the IP addresses belong to your VPN provider, this indicates that there is no DNS leak and your traffic is safe.

How do I fix a DNS leak?

If you’ve determined that you are experiencing a DNS leak, there are a variety of different methods you can use to stop the leak and prevent them from happening again.

  • Change your DNS server — Switch over to Google Public DSN, OpenDNS, Cloudflare or Uncensored DNS if you’ve got a leak. If you’re concerned about your ISP or third parties eyeing your activity, they won’t be able to on more secure servers.
  • Use DNS servers from VPN providers — Some VPN providers, like ExpressVPN, Surfshark, or NordVPN, allow you to use their own private, encrypted DNS servers in addition to providing a private browsing tunnel.
  • Use a VPN with DNS leak protection — Some premium VPN providers (ExpressVPN, Surfshark and Private Internet Access) have features that notify users when there are DNS leaks. Check the settings on the VPN and set it for protection.

What is SmartDNS?

Smart DNS is a technology that unblocks websites and digital media unavailable to your country or geo-specific location. So if you’re visiting a European country this summer, you can watch American Netflix, Amazon Prime or Disney Plus while back in your hotel room, or stream Pandora music from your poolside deck chair. Or if you’re living in a country that blocks Facebook, you’ll be able to set up an account.

This concept sounds similar to a VPN, but works in a different way. Instead of masking your IP address and creating a tunnel of anonymity, like a VPN, SmartDNS redirects your DNS queries to its content-friendly DNS servers, essentially unlocking the gate to the blocked content while drawing no suspicion to your activity.

Users might opt for SmartDNS over a VPN to avoid automatic security and bot checks that get set off when a user logs in repeatedly from different IP addresses. With its streaming content focus, one benefit does seem to be speed. Since a VPN uses some bandwidth to encrypt all of your internet activity, and allows you to be totally anonymous, SmartDNS could potentially unlock content unavailable to your location at a much faster speed.

Overall, a VPN provides more online security and is a better choice for unlocking content as it protects your identity and activity while performing the same duties.

The Takeaway

The Domain Name System (DNS) is the foundation of internet browsing, and choosing the best DNS servers is fundamental to a good internet experience for the user. If you’re experiencing slow internet speeds, poor connectivity or some other issues, it might be time to look into new DNS servers. If you think your ISP’s DNS servers might be insecure, try out Google DNS, Cloudflare, OpenDNS, Quad9, Uncensored DNS or Comodo. But if you want to keep your internet activity from prying eyes and data collectors altogether, take advantage of the anonymity that a VPN provides.

What is a DNS Server: FAQs

Do you have a question about the Domain Name System (DNS) and DNS Servers? Click on one of our frequently asked questions below to view the answer.

DNS, or the Domain Name System, is like an online directory for domain names (like VPNOverview.com) and their corresponding IP addresses. Computers only know numbers, and humans are better with easily-remembered domain names, so the system matches domain queries with their IP addresses.

DNS servers are devices or programs that handle DNS queries from desktop and mobile devices. With more than 360 million registered domains and corresponding IP addresses, this information is stored on DNS servers around the world. Servers communicate with each other constantly to update data on websites.

Security depends entirely on the server you’re using. Your Internet Service Provider sets you up on a DNS server, and if you feel it’s not secure, third party DNS servers like Google Public DNS, OpenDNS and Cloudfare have top-notch security features and connection speeds. To learn more about these and other safe DNS servers, read our full article.

Switching to a more secure DNS provider from your current DNS service won’t hurt your device or network. You can reverse any changes you make, and try different servers based on your location. You simply enter new primary and secondary DNS IP addresses into your router’s settings. Simple instructions on how to change your DNS server can be found here.

A DNS attack goes after vulnerable areas in the Domain Name System. This could be attacking insecure DNS servers, performing DNS cache poisoning and DNS spoofing, or DNS hijacking. If a hacker manages to override DNS settings or queries, internet users can be redirected to malicious sites.

Tech journalist
Taylor is a tech writer and online journalist with a special interest in cybersecurity and online privacy. He’s covered everything from sports and crime, to explosive startups, AI, cybercrime, FinTech, and cryptocurrency. For VPNOverview.com he follows news and developments in online privacy, cybersecurity, and internet freedom.
2
Comments
Leave a comment
  1. I have read and researched for almost a year and this is by far the cleanest and most informative piece I have ever read – thank you Mr. Moore!

    Do you have anything written on targeted attacks, or actual device breaching? Is there a program you can run to see if you are being redirected, or if they are cached or poised sites? A clean up tool so to speak (besides the norm virus scans)?? I haven’t tried all of the suggestions mentions here yet, but some and it seems as if no matter what I do, it continues. It’s exhausting and frustrating, and particularly intrusive.

Leave a comment