Discover DNS Servers that Block Malware, Ads and More

Internet browsing involves several resources invisible to the end user but fundamental to the web’s operation. One of these resources is the DNS (Domain Name System), responsible for translating website names into IP addresses that machines can understand.
With the increase in digital threats and the number of malicious ads and websites, alternative DNS servers have emerged that, besides resolving domain names, offer extra protection against malware, phishing, adult content, and even intrusive advertising.
In this article, you’ll understand how DNS works, learn about secure server options, and how to configure them.
How DNS Works
The DNS works like the “internet’s phone book.” When you type a website like www.google.com, the browser needs to discover the IP address of the server where that site is hosted. This translation is done by the DNS server configured on your computer, router, or mobile device.
Typically, we use our internet provider’s DNS servers, but they don’t offer additional security features. This is where specialized DNS servers come in, capable of filtering harmful or unwanted content before it reaches the user.
Main DNS Servers with Blocking and Security Features
| DNS Server | Addresses (IPv4) | Main Function |
|---|---|---|
| Cloudflare DNS Malware | 1.1.1.2 and 1.0.0.2 | Blocks malicious sites (malware, phishing) |
| Cloudflare DNS Malware + Adult | 1.1.1.3 and 1.0.0.3 | Blocks malicious sites and adult content |
| AgnerDNS | Various (e.g., 45.90.28.0 and 45.90.30.0) | Blocks ads, malware, casinos, betting sites and more |
| Quad9 DNS | 9.9.9.9 and 149.112.112.112 | Security focused: blocks known malicious domains |
| OpenDNS FamilyShield | 208.67.222.123 and 208.67.220.123 | Automatic blocking of adult and malicious sites |
| OpenDNS Home | 208.67.222.222 and 208.67.220.220 | Offers customized filtering and malware protection |
| CleanBrowsing (Family Filter) | 185.228.168.168 and 185.228.169.168 | Blocks adult content, malicious sites and phishing |
How to Configure DNS on your Device
Configuration can be done on each individual device (PC, mobile, laptop, among others). Here’s the basic step-by-step for major operating systems:
On Windows
- Open Control Panel → Network and Internet → Network and Sharing Center.
- Click on Change adapter settings.
- Right-click on your connection and select Properties.
- Select Internet Protocol Version 4 (TCP/IPv4) → Properties.
- Check Use the following DNS server addresses and enter the desired addresses.
- Click OK to save.
On Android
- Go to Settings → Network & internet.
- Tap and hold the connected network under Wi-Fi.
- Go to Advanced → IP settings → change to Static.
- Fill in DNS 1 and DNS 2 fields with your chosen addresses.
On iOS
- Go to Settings → Wi-Fi.
- Tap the “i” icon of the connected network.
- Under Configure DNS, select Manual.
- Add your desired DNS servers.
On macOS
- Click the (Apple) menu and go to System Preferences → Network.
- Select the active connection (Wi-Fi or Ethernet) from the left list.
- Click Advanced… in the lower right corner.
- Go to the DNS tab.
- Click the + button and add your desired DNS addresses.
- Remove other DNS servers from the list if you prefer to use only the new ones.
- Click OK and then Apply to save the changes.
👉 This configuration takes effect immediately for the chosen connection. If you change networks (for example, switch Wi-Fi), you may need to repeat the process.
Conclusion
Using DNS servers with security filters is a simple and effective way to enhance online protection, block unwanted content, and even improve browsing performance.
Tools like Cloudflare DNS, Quad9, OpenDNS, and AgnerDNS are reliable options for those seeking more privacy and peace of mind in their digital daily life.
Configuration is quick, reversible, and can bring immediate benefits. It’s worth testing and choosing the DNS that best suits your needs.