The best DNS servers provide another way to connect online, offering a faster and safer surfing experience than through your ISP.
If you’re new to DNS servers, the DNS or Domain Name System is a protocol or system that will take the domain names that you enter into a browser and translate them into the IP addresses needed to access those particular websites.
If you don’t have your own server, you’ll be assigned one every time you go online. However, since it’s being assigned to you by your ISP, it’s not always the best choice available. Slow servers can result in websites loading slowly, and if the server assigned to you goes down, you might essentially have no real internet connection at all.
By jumping to a free and public DNS server, you’ll experience a much smaller chance of technical issues, as well as much more responsive browsing. Additionally, some of them come with security features such as blocking infected or phishing websites as well as offering content filtering to keep your children from certain, unsavory parts of the online world.
You need to choose your service with care - not all providers will necessarily be better than your ISP - but to help point you in the right direction, this article will highlight six of the best DNS servers around.
What is DNS?
Why you can trust TechRadar Our expert reviewers spend hours testing and comparing products and services so you can choose the best for you. Find out more about how we test.
The Domain Name System (DNS) is a phone book for the internet, a framework which translates domain names, like facebook.com or twitter.com, into the IP addresses necessary for devices to load those internet resources (e.g. 18.104.22.168). In geek terms, that's called Resolution.
The mechanics of DNS can be quite complicated, as information isn't held in a single database, but rather distributed in a worldwide directory including a vast number of DNS servers.
Fortunately, the average internet user doesn't normally have to get involved in any of the low-level technical details. Your ISP automatically provides you with access to a DNS server whenever you go online, and whenever you enter a URL into your browser, this will find the relevant IP address (opens in new tab) for you.
We've also featured the best small business servers.
The best free and public DNS servers of 2023 in full:
Best known for its top-rated CDN, Cloudflare has extended its range to include a new public DNS service, the catchily-named 22.214.171.124.
Cloudflare has focused much more on the fundamentals. These start with performance, and independent testing from sites like DNSPerf shows Cloudflare is the fastest public DNS service around.
Privacy is another major highlight. Cloudflare doesn't just promise that it won't use your browsing data to serve ads; it commits that it will never write the querying IP address (yours) to disk. Any logs that do exist will be deleted within 24 hours. And these claims aren't just reassuring words on a website. Cloudflare has retained KPMG to audit its practices annually and produce a public report to confirm the company is delivering on its promises.
The 126.96.36.199 website has some setup guidance, with simple tutorials covering Windows, Mac, Android, iOS, Linux and routers. These are very generic - you get one set of instructions for all versions of Windows, for instance - but there are some pluses (IPv6 as well as IPv4 details) and you should be able to figure it out. Additionally, mobile users can use WARP which secures all of the phone’s internet traffic.
The product doesn't offer ad-blocking or attempt to monitor what you can access, and what you can't. The one caveat is that Cloudflare has introduced content filtering for malware and adult content blocking, with their 188.8.131.52/184.108.40.206 and 220.127.116.11/18.104.22.168 services respectively, but this is an option a user can choose rather than have forced on them.
If you have any problems, Cloudflare offers a community forum where you can ask questions or see what others are doing, a nice extra touch which we'd like to see followed by other providers.
Read our full Cloudflare 22.214.171.124 review.
Google Public DNS is a simple and effective replacement for your own ISP's nameservers.
Privacy can't quite match the 'we don't keep anything' promises of Cloudflare, but it's not bad. The service logs the full IP address information of the querying device for around 24 to 48 hours for troubleshooting and diagnostic purposes. 'Permanent' logs drop any personally identifiable information and reduce location details to the city level, and all but a small random sample of these are deleted after two weeks.
Google's support site offers only very basic guidance targeted at experienced users, warning that "only users who are proficient with configuring operating system settings [should] make these changes." If you're unsure what you're doing, check the tutorials from a provider such as OpenDNS, remembering to replace its nameservers with Google's: 126.96.36.199 and 188.8.131.52.
Read our full Google Public DNS review.
Quad9 is a young DNS outfit which has been providing a fast and free DNS service since August 2016.
The company sells itself on its ability to block malicious domains by collecting intelligence from 'a variety of public and private sources.' It's not clear what these sources are, but the website says Quad9 used 18+ 'threat intelligence providers' as of December 2018.
That's a little too vague for us, and we're not convinced that using a large number of threat intelligence providers will necessarily help – the quality of the intelligence is generally more important than the quantity.
There's no arguing about Quad9's performance, though. DNSPerf currently rates it seven out of ten for average worldwide query times, lagging behind Cloudflare and OpenDNS, but effortlessly outpacing contenders like Comodo.
Drilling down into the detail reveals some variations in speed - Quad9 is in eighth place for North American queries - but overall the service still delivers better performance than most.
Setup guidance is a little limited, with tutorials for the latest versions of Windows and macOS only. They're well presented, though, and it's not difficult to figure out what you need to do.
Read our full Quad9 review.
Founded in 2005 and now owned by Cisco, OpenDNS is one of the biggest names in public DNS.
The free service offers plenty of benefits: high speeds, 100% uptime, phishing sites blocked by default, optional parental controls-type web filtering to block websites by content type, along with free email support if anything goes wrong.
Commercial plans enable viewing a history of your internet activity for up to the last year, and can optionally lock down your system by allowing access to specific websites only. These aren't going to be must-have features for the average user, but if you're interested, they can be yours for a modest fee.
If you're an old hand at swapping DNS, you can get started immediately by reconfiguring your device to use the OpenDNS nameservers.
If you're a newbie, that's okay too, as OpenDNS has setup instructions (opens in new tab) for PCs, Macs, mobile devices, routers and much, much more.
Read our full OpenDNS review.
Comodo Group is the power behind a host of excellent security products, so it's no surprise that the company also offers its own public DNS service.
Just as you'd expect, Comodo Secure DNS has a strong focus on safety. It doesn't just block phishing sites, but also warns if you try to visit sites with malware, spyware, even parked domains which might overload you with advertising (pop-ups, pop-unders and more). Furthermore, you can try out the Comodo Dome Shield service, which adds additional features to Comodo Secure DNS.
Comodo claims its service is smarter than average, too, detecting attempts to visit parked or 'not in use' domains and automatically forwarding you to where you really want to go.
Performance is key, of course, and the company suggests its worldwide network of servers and smart routing technology give it an advantage. Unfortunately, Comodo stats weren't that impressive, and in our tests, we got an average query time of around 72ms.
That said, Comodo may still be interesting if you're looking for an extra layer of web filtering, and the support website has some short but useful instructions on setting the service up on Windows PCs, Macs, routers and Chromebooks.
Read our full Comodo Secure DNS review.
Best DNS servers FAQs
How we choose the best DNS server for you
DNS servers can vary hugely in speed, particularly in areas which don't always have the best internet coverage (Africa, South America, Oceania.) To take an example of a single day when we tested, DNSPerf.com reported Cloudflare achieved an average 4.43ms query time for Oceania, while Yandex was left trailing at 350.24ms. That's potentially more than a third of a second in extra waiting time before your browser can access any new website.
This is an extreme example, to be fair. European or US lookups may see less than 30ms variation between most DNS services, and as your device or router will probably cache the address for reuse later, even this delay will only occur very occasionally. Still, a sluggish DNS server can noticeably slow down your browsing in some situations, and trying an alternative – especially as the best options are all free – is generally a good idea.
There's a second possible benefit in terms of uptime. If your ISP DNS server fails, you might not be able to access some or all of your favorite sites. Big-name providers such as OpenDNS claim they've had 100% uptime going back years. These are the factors we take into consideration when choosing the best DNS servers.
How we test a DNS server?
As with every service, you get what you pay for and it’s no different here. Free DNS can be good but it’s nothing compared to a Premium paid version. Granted, not everyone wants to pay and depending on their needs they might not need to, but paid DNS is always a better choice. Apart from the increased website performance and security, you also get additional features.
For instance, Dynamic DNS and Secondary DNS are a staple of the premium DNS service. The Dynamic DNS works with dynamic IP addresses and it allows users to access their home computer from anywhere in the world. The Secondary DNS works as a backup of sorts which is always a plus. This is just a small fraction of what a premium DNS can do and the exact number of features will depend on the service provider, which is one of the features we look for when testing a DNS service.
We also test DNS servers to see if it can filter content to block ads, trackers, malicious, phishing or family-unfriendly sites, depending on your needs.
How can I find the fastest DNS service?
DNS speed depends on many factors, including your location, the distance to your nearest server, and that server having enough power and bandwidth to handle all the queries it receives.
DNS Jumper (opens in new tab) is a portable freeware tool which tests multiple public DNS services to find out which delivers the best performance for you.
The program has a lot of options, but isn't difficult to use. Launch it, click Fastest DNS > Start DNS Test, and within a few seconds you'll be looking at a list of DNS services sorted by speed.
DNS Jumper can be useful, in particular because it's checking how servers perform from your location, but it doesn't run enough tests over a long enough period to give you a definitive answer.
DNSPerf (opens in new tab) tests multiple DNS services every minute from 200+ locations around the world and makes the results freely available on its own website. This gives a very good general idea of performance, and also enables seeing how services compare on different continents, as well as assessing their uptime.
How can I switch DNS servers?
The steps involved in changing your DNS service vary according to your hardware and possibly your operating system version.
Generally, you must start by finding the primary and secondary nameservers for the DNS service you'd like to use. These IP addresses are normally displayed very clearly on the service website, so, for example, Cloudflare DNS uses 184.108.40.206 and 220.127.116.11.
The simplest approach for home users is to update their router to use the new addresses. Most other devices will then pick up the new DNS settings automatically, with no further work required.
To make this happen you must log in to your router (the default password may be printed on its base) and look for the current DNS primary and secondary nameservers. Make a note of the current values in case of problems, then replace them with the nameservers you'd like to use.
If you run into problems, check out your DNS service website for any setup guidance. Keep in mind that you can also use the tutorials of other DNS providers, as long as you remember to replace their nameserver IPs with your preferred options. OpenDNS, for instance, has specific guidance for many different router types on its support site (opens in new tab).
If router tweaks aren't right for your situation, you may have to change the DNS configuration of each individual device. Cloudflare has short and simple guidance here (opens in new tab), while the OpenDNS website (opens in new tab) goes into more depth.
How can I find my current DNS servers?
If you're troubleshooting your internet connection, or maybe thinking of switching DNS servers, it might be useful to check which DNS servers you're using at the moment.
The simplest way to do this is to visit DNSLeakTest.com (opens in new tab) and tap the Standard Test button. Within a few seconds the website will usually display your DNS server IP addresses, host names, and sometimes (if appropriate) the name of your ISP.
After that, life gets more complicated as there are several potential options. Your device could be set up to use specific DNS servers; it might ask your router to give it the best DNS servers every time it boots; or it might not know anything about DNS servers, and leave your router to handle everything.
On Windows, you could get started by entering IPCONFIG /ALL in a command line window. Look for your network adapter and you should see its DNS servers specified in the list.
If there's a single DNS IP address which points at your router – 192.168.x.x – that suggests the router is handling all DNS queries. Enter that IP address into your browser, log in to the router if necessary and your DNS servers should be listed amongst the settings.
Why paid DNS is better than free
If your browser is telling you a website's 'server IP address could not be found', even though you're sure it's up and available, then this could be due to a problem with your DNS. But you might not want to go to the trouble of changing your DNS service to find out.
Windows users can use the command line tool nslookup.exe to look at the results of any DNS server without touching their system settings.
Run cmd.exe to open a command line window, then type:
Then press Enter (replace website.com with the address of whatever website you're trying to reach).
Nslookup uses your default DNS server to look for the IP address of website.com. If it tells you it 'can't find website.com', this means your DNS server doesn't have a record for that domain.
Next, tell the tool to use another DNS service by entering a command like:
nslookup website.com 18.104.22.168
The 22.214.171.124 address uses Google DNS – replace that with any DNS service you like, such as 126.96.36.199 for Cloudflare.
If nslookup returns errors using multiple servers, this doesn't look like a DNS issue. If one server returns an IP address and another doesn't, you might want to try setting up your system to use the working DNS and see if it makes any difference.