One simple trick that protects you from millions of cyberattacks β free, set up in under 5 minutes, and completely without any software installation.
Readtime: 4 min, 0 seconds
π What Is DNS Anyway?
The Domain Name System (DNS) is like the phone book of the internet. When you type a website like www.example.com, the DNS resolver translates that name into an IP address so your device can load the page. By default, you use your internet provider's DNS server β but there are better alternatives.
URL: (https://quad9.net/)[https://quad9.net/]
π What Is Quad9?
Quad9 is a free, public DNS resolver headquartered in Switzerland π¨π. It was built with a clear focus on security and privacy and is operated by a non-profit organization.
β 5 Reasons Why You Should Use Quad9
1. π Protection Against Malware & Phishing
Quad9 automatically blocks access to known malicious domains β including malware, phishing sites, and botnet infrastructure. Over 100 million attacks are blocked every day.
2. π΅οΈ Maximum Privacy
Quad9 does not store IP addresses of its users. The service is fully GDPR-compliant and is subject to Swiss data protection law β one of the strictest in the world. Your browsing habits remain private.
3. π DNSSEC Validation
Quad9 cryptographically verifies whether DNS responses are authentic. This protects you from DNS spoofing and cache poisoning β techniques attackers use to redirect you to fake websites.
4. π Global Infrastructure
With over 259 locations in 106 countries across six continents, Quad9 offers excellent performance and minimal latency.
5. π Encrypted DNS Queries
Quad9 supports modern encryption standards:
- DNS-over-TLS (DoT) β Port 853
- DNS-over-HTTPS (DoH) β
https://dns.quad9.net/dns-query - DNSCrypt
This keeps your DNS queries protected even on public Wi-Fi networks.
βοΈ How to Set Up Quad9 with Cloudflare as Secondary DNS
The combination of Quad9 (primary) and Cloudflare (secondary) gives you maximum security and redundancy. If one service is temporarily unavailable, the other takes over.
π DNS Addresses Overview
| Role | Provider | IPv4 | IPv6 |
|---|---|---|---|
| Primary | Quad9 | 9.9.9.9 |
2620:fe::fe |
| Secondary | Cloudflare | 1.1.1.2 |
2606:4700:4700::1112 |
!π‘ Optionally, you can also add the secondary addresses of each provider:
- Quad9 secondary:
149.112.112.112/2620:fe::9 - Cloudflare secondary:
1.0.0.2/2606:4700:4700::1002
π Why 1.1.1.2 instead of 1.1.1.1?
Cloudflare offers different DNS variants:
1.1.1.1β Standard DNS without any filtering1.1.1.2β Additionally blocks known malware domains1.1.1.3β Blocks malware and adult content
Combined with Quad9, we recommend 1.1.1.2 as it gives you a double layer of protection against malicious software β without unnecessary content filtering.
π₯οΈ Setup on Windows 10/11
- Settings β Network & Internet β Advanced network settings
- Click on your network adapter β Edit
- Under DNS server assignment, click Edit
- Select Manual and enable IPv4:
- Preferred DNS:
9.9.9.9 - Alternate DNS:
1.1.1.2
- Preferred DNS:
- Optionally enable IPv6:
- Preferred DNS:
2620:fe::fe - Alternate DNS:
2606:4700:4700::1112
- Preferred DNS:
- Save β
π Setup on macOS
- System Settings β Network
- Select your active connection (Wi-Fi/Ethernet)
- Click Details β DNS
- Remove existing entries and add:
9.9.9.91.1.1.2- Optional IPv6:
2620:fe::feand2606:4700:4700::1112
- OK β Apply β
π§ Setup on Linux
Option A: Via systemd-resolved (Ubuntu, Fedora, Arch etc.)
- Edit the configuration file:
sudo nano /etc/systemd/resolved.conf
- Add the following lines under
[Resolve]:
[Resolve]
DNS=9.9.9.9 1.1.1.2
FallbackDNS=149.112.112.112 1.0.0.2
DNS=2620:fe::fe 2606:4700:4700::1112
DNSSEC=yes
DNSOverTLS=yes
- Restart the service:
sudo systemctl restart systemd-resolved
- Verify:
resolvectl status
Option B: Directly via /etc/resolv.conf
If you don't use systemd-resolved:
sudo nano /etc/resolv.conf
Replace the content with:
nameserver 9.9.9.9
nameserver 1.1.1.2
β οΈ Note: Some systems overwrite resolv.conf after a reboot. To prevent this:
sudo chattr +i /etc/resolv.conf
Option C: NetworkManager (GUI)
- Settings β Network β Gear icon next to your connection
- Tab IPv4 β DNS method set to Manual
- Enter DNS servers:
9.9.9.9, 1.1.1.2 - Optional tab IPv6:
2620:fe::fe, 2606:4700:4700::1112 - Apply and reconnect β
π± Setup on Smartphones
iOS: Settings β Wi-Fi β Info icon (i) β Configure DNS β Manual β Add Server: 9.9.9.9 and 1.1.1.2
Android: Settings β Network & Internet β Private DNS β Enter hostname: dns.quad9.net
π Setup on Your Router (recommended! π)
The best method is to configure DNS directly on your router β this way all devices on your network benefit automatically:
- Open your router's admin panel (e.g.
192.168.1.1) - Navigate to DNS settings (often under WAN/Internet)
- Enter:
- Primary DNS:
9.9.9.9 - Secondary DNS:
1.1.1.2
- Primary DNS:
- Save and restart the router π
π§ͺ Verify It's Working
After setup, you can test:
- Visit on.quad9.net β this shows you if Quad9 is active
- Use the command line:
nslookup example.com 9.9.9.9
π― Conclusion
The combination of Quad9 as primary and Cloudflare as secondary DNS gives you:
- β Protection against malware and phishing
- β Privacy thanks to Swiss data protection law
- β Speed through global infrastructure
- β Redundancy through two independent providers
- β Free and set up in just a few minutes
π‘οΈ A small change in your DNS settings β a giant leap for your online security.