Quad9 DNSDNS The internet’s phone book. It turns a name people can remember, like example.com, into the number address computers use to find the server. More about DNS → is a free public DNS resolver, reached at 9.9.9.9, that also refuses to look up domains known to spread malware or phishing. This guide is for anyone who wants to know what it does, which of its addresses to use, how to set it on a computer, phone, router or Linux server, and what it means for your own website.
Quad9 is a free, non-profit DNS resolver that blocks lookups for known malicious domains and validates DNSSEC. Use 9.9.9.9 and 149.112.112.112 (IPv6 2620:fe::fe and 2620:fe::9), or dns.quad9.net for encrypted DNS. Set them in place of your current DNS servers, then open on.quad9.net or run nslookup example.com 9.9.9.9 to confirm it is answering.
What Quad9 DNS actually is
Before your browser can load example.com, your device has to find the server’s IP addressIP address The number address of a device on the internet, like 203.0.113.10. Computers use it to find each other, the way post uses street addresses. More about IP address →. It asks a recursive resolver: a DNS server that chases the answer through the DNS system for you and hands it back. How DNS works follows that journey step by step.
By default you use whichever resolver your internet provider hands out. Quad9 is an alternative you can choose instead. It is run by the Quad9 Foundation, a non-profit based in Switzerland, it is free, and it needs no account.
What makes it different from most public resolvers is threat blocking. Quad9 checks every name you look up against threat intelligence feeds. If a domain is listed as hosting malware, phishing pages or botnet control servers, Quad9 answers as if the domain does not exist. Your browser shows a “site can’t be reached” error instead of loading the dangerous page.
A few things Quad9 is not:
- It is not a nameserverNameserver The server that holds all of a domain’s settings. Whoever runs your nameservers controls where your website and email point. More about Nameserver → for your domain. It answers questions about domains; it does not hold your records. If you want to change where your site points, you do that at your DNS host. See what a nameserver is.
- It is not a VPN. Websites still see your public IP address. Only your DNS lookups go to Quad9.
- It is not an ad blocker or parental filter. It blocks threats, not adverts or adult content.
Quad9 addresses and which to choose
Quad9 runs three services. Each has two IPv4 and two IPv6 addresses so your device has a backup if one does not reply.
| Service | IPv4 | IPv6 | Blocks threats | DNSSEC | Sends your subnet (ECS) |
|---|---|---|---|---|---|
| Recommended | 9.9.9.9 and 149.112.112.112 | 2620:fe::fe and 2620:fe::9 | Yes | Yes | No |
| Secured with ECS | 9.9.9.11 and 149.112.112.11 | 2620:fe::11 and 2620:fe::fe:11 | Yes | Yes | Yes |
| Unsecured | 9.9.9.10 and 149.112.112.10 | 2620:fe::10 and 2620:fe::fe:10 | No | No | No |
For encrypted DNS, the recommended service is dns.quad9.net. Use that hostname for DNS over TLS (portPort A numbered door on a server. Each service listens behind its own door: web pages on 443, email on others, remote login on 22. More about Port → 853) and https://dns.quad9.net/dns-query for DNS over HTTPSHTTPS The secure version of the web, shown by the padlock. Everything sent between you and the site is scrambled so nobody in between can read or change it. More about HTTPS →.
Use the recommended service unless you have a reason not to. The other two exist for specific cases:
- ECS (EDNS Client Subnet) passes part of your IP address on to the website’s own DNS servers so a content delivery network can pick a server near you. Some streaming and download sites give slightly better routes with it. The cost is that a little more information about your location leaves Quad9.
- Unsecured does no blocking and no DNSSEC checks. It is mainly useful for testing: if a domain fails on 9.9.9.9 but works on 9.9.9.10, Quad9’s protection is the reason.
Should you switch?
Switching makes sense if you want a layer of protection against bad links on every device in the house or office, if your provider’s resolver is slow or unreliable, or if you prefer a resolver that is not run by an advertising company or your internet provider.
It will not make your connection faster in general. Downloads and streaming speed depend on your line, not your resolver. The only time you save is the few milliseconds of each lookup, and only if Quad9 answers faster than the resolver you use now.
Threat blocking is a safety net, not a replacement for keeping your software updated. A dangerous site that is not yet on any list will still load.
How to set Quad9 on your device
You can set Quad9 on one device, or on your router so every device on the network uses it.
Windows 10 and 11
- Open Settings, then Network & internet, then Wi-Fi or Ethernet, and select your connection.
- Next to DNS server assignment, choose Edit, then Manual.
- Turn on IPv4, enter
9.9.9.9as preferred and149.112.112.112as alternate. Do the same for IPv6 with2620:fe::feand2620:fe::9if your connection has IPv6. - On Windows 11, if a DNS over HTTPS option appears, set it to On (automatic template) to encrypt your lookups.
- Choose Save.
From an administrator PowerShell window you can do the same in one line. Replace Wi-Fi with your adapter name, which Get-NetAdapter lists:
Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ServerAddresses ("9.9.9.9","149.112.112.112")
macOS
- Open System Settings, then Network, and choose your connection (Wi-Fi or Ethernet).
- Choose Details, then the DNS tab.
- Use the + button to add
9.9.9.9and149.112.112.112, and remove the old entries. - Choose OK.
iPhone and iPad
Open Settings, then Wi-Fi, and tap the i next to your network. Tap Configure DNS, choose Manual, delete the existing servers and add 9.9.9.9 and 149.112.112.112. This applies to that Wi-Fi network only, not mobile data.
Android
Android has a Private DNS setting that encrypts every lookup, on Wi-Fi and mobile data. Open Settings, then Network & internet (the name varies by maker), then Private DNS. Choose Private DNS provider hostname and enter dns.quad9.net.
Your router
Setting Quad9 on the router covers phones, TVs and anything else that joins your network. Log in to the router’s admin page, find the DNS or WAN settings, and replace the automatic servers with 9.9.9.9 and 149.112.112.112. Every router is laid out differently, so check its manual if you cannot find the setting.
Ubuntu and Debian servers with systemd-resolved
On Ubuntu 22.04 and 24.04, and on Debian 12 where systemd-resolved is installed, lookups go through systemd-resolved. Edit its configuration:
sudo nano /etc/systemd/resolved.conf
Under the [Resolve] section, set Quad9 and turn on encryption. The part after # is the name the server’s certificate must match:
[Resolve]
DNS=9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net
DNSOverTLS=yes
Restart the service and check what it is using:
sudo systemctl restart systemd-resolved
resolvectl status
resolvectl status should list 9.9.9.9 under DNS Servers and show +DNSOverTLS. If your network settings (for example netplan on a cloud server) also hand out DNS servers, the server may use those for that interface. Set the same addresses in the netplan nameservers: block too if you want Quad9 used everywhere.
On a remote server, test a lookup straight after the change with resolvectl query example.com. If DNS stops working, package updates and outgoing email will fail. Remove the two lines and restart the service to go back.
How to check Quad9 is working
Open on.quad9.net in a browser. The page tells you plainly whether your lookups are reaching Quad9.
From a terminal, you can ask Quad9 directly. These work whether or not your device is set to use it:
nslookup example.com 9.9.9.9
dig @9.9.9.9 example.com
A normal answer shows the domain’s IP address. To see threat blocking in action, Quad9’s documentation uses isitblocked.org as a test domain. Compare the protected and unprotected services:
dig @9.9.9.9 isitblocked.org
dig @9.9.9.10 isitblocked.org
The first should return status NXDOMAIN (no such domain) and the second a normal answer. DNS lookup explains how to read these results.
If on.quad9.net says you are not using Quad9 even after you changed your settings, something else is answering. A VPN, your browser’s own secure DNS setting, or a router that forces its own resolver are the usual reasons. A DNS leak test shows exactly which resolver is replying.
Quad9 for website owners
Even if you never use Quad9 yourself, some of your visitors will. Two things can make your site disappear for them while it works for everyone else.
Your domain is on a threat list
If your site was hacked and used to host phishing pages or malware, a threat feed may have listed it. Quad9 users then get NXDOMAIN for your domain. Check by comparing the two services:
dig @9.9.9.9 example.com +short
dig @9.9.9.10 example.com +short
If 9.9.9.10 returns your IP address and 9.9.9.9 returns nothing, Quad9 is blocking you. Clean the site first, then contact Quad9 through its support pages to ask for a review. Removing the infection is the part that matters; a block will come back if the malware is still there.
Your DNSSEC is broken
Quad9 checks DNSSEC signatures. If your domain has DNSSEC switched on at the registrarDomain registrar The company you buy and renew your domain name from, and where you choose who handles its settings. More about Domain registrar → but the signatures or DS record no longer match, for example after moving DNS to a new provider, Quad9 refuses to answer and returns SERVFAIL. Resolvers that do not validate will still answer, so the problem only shows up for some visitors. The fix is to update or remove the DS record at your registrar so it matches your current DNS host.
Common problems
| Symptom | Cause | Fix |
|---|---|---|
| One site will not load on Quad9 but works elsewhere | The domain is on a threat list | Check with 9.9.9.10; if it is a false alarm, report it to Quad9 support |
| SERVFAIL for one domain only | The domain’s DNSSEC is broken | Try 9.9.9.10 to confirm; the domain owner must fix the DS record |
| on.quad9.net says you are not using Quad9 | VPN, browser secure DNS or router override | Run a DNS leak test and change the setting that wins |
| Changes made but old answers still appear | Your device cached the previous resolver’s answers | Flush your DNS cache |
| Android Private DNS shows “Couldn’t connect” | Network blocks port 853 or the hostname is mistyped | Check it reads exactly dns.quad9.net, or switch Private DNS to Automatic on that network |
| Streaming or downloads route to a distant server | No ECS on the recommended service | Try 9.9.9.11 and 149.112.112.11 instead |
Official documentation
Related
- Google DNS: what 8.8.8.8 is and how to use it: the same setup steps for Google’s resolver, if you want to compare the two.
- What is DNS propagation and how long does it take?: why different resolvers can show different answers after you change a record.
- How to fix DNS_PROBE_FINISHED_NXDOMAIN: the browser error you see when a lookup, or a Quad9 block, says a name does not exist.
Something out of date? Software changes. If a step no longer works, tell us and we will check it and update the page.



