Mastodon
One Simple Change Can Make Your Internet Safer

One Simple Change Can Make Your Internet Safer

By Chuck Davis

How changing your DNS settings can improve your security and privacy, for free.

December 1, 2026

Back in October 2018, I wrote an article called Protecting Yourself Online. At the end of that article, I included a bonus tip about changing your DNS settings to improve your security.

In May 2020, I revisited the topic in Between The Hacks News and promised to write a dedicated article about changing DNS.

Apparently, I didn't specify when.

So here we are, six and a half years later, and it's still one of the simplest things you can do to improve your online security and privacy. And it's free.

What is DNS?

DNS stands for Domain Name System, and it works a bit like the phone book of the Internet.

When you type betweenthehacks.com into your browser, your computer needs to find the IP address of the server hosting my website. It asks a DNS server for that information, and your browser uses the response to connect to the website.

This happens behind the scenes throughout the day, not just when you're browsing the Internet. Your smartphone, smart TV, security cameras and even your Internet-connected refrigerator may be making DNS requests.

In most homes, the DNS servers you use are automatically assigned by your Internet Service Provider (ISP).

But you don't have to use them.

Why would you change your DNS?

There are four good reasons to consider using an alternate DNS service.

Security. Imagine you receive a convincing phishing email and unknowingly click on a malicious link. If your DNS provider knows that the destination domain is malicious, it can prevent your browser from connecting to it. It may also prevent malware on your computer from communicating with certain servers operated by criminals.

Privacy. Your DNS requests can reveal quite a bit about you. Choosing a DNS provider with strong privacy policies and enabling encrypted DNS can help reduce who has access to that information.

Content filtering. Some DNS services can block adult websites, advertising and online tracking services. This can be particularly useful for families with young children.

Performance. Some alternate DNS providers may respond to requests more quickly than your ISP. Don't expect your Internet connection to suddenly become twice as fast, though. Faster DNS primarily reduces the time it takes to look up a domain name.

Which DNS service should you use?

That depends on what you're trying to accomplish. Here are some popular options.

DNS Service Primary DNS Secondary DNS Features
Quad9 9.9.9.9 149.112.112.112 Malicious domain blocking
Cloudflare 1.1.1.1 1.0.0.1 No content filtering
Cloudflare Malware Blocking 1.1.1.2 1.0.0.2 Malware and phishing protection
Cloudflare Family 1.1.1.3 1.0.0.3 Malware, phishing and adult-content filtering
Google Public DNS 8.8.8.8 8.8.4.4 General-purpose DNS without routine content filtering
AdGuard DNS 94.140.14.14 94.140.15.15 Advertising and tracker blocking

All of the services listed above are available for free.

If your primary goal is security and privacy, I'd suggest starting with Quad9. It's operated by a Swiss nonprofit organization, blocks known malicious domains and states that it doesn't log individual users' IP addresses.

Cloudflare's malware-blocking service is another good option.

If you're looking for more control over what can be accessed from your home network, take a look at NextDNS. It allows you to customize your filtering settings, but its free plan is limited to 300,000 DNS requests per month. After that, it continues resolving DNS requests without filtering until your allowance resets.

How to change your DNS

There are two places where you can change your DNS settings.

On your home router

This is a good place to start because a single change can benefit most of the devices on your home network, including devices that don't allow you to change their DNS settings individually.

Log into your router's administrative interface and look for the DNS settings. They are often under Internet, WAN or DHCP settings.

Make a note of your existing settings, enter the two DNS addresses for your chosen service and save your changes. You may need to reconnect your devices to your network.

Use both addresses from the same filtering service. Mixing a filtering DNS server with a non-filtering DNS server can result in inconsistent protection.

On individual devices

Changing DNS on your laptop or smartphone can also provide protection when you're away from home.

Here are instructions for some of the more popular operating systems:

For Android's Private DNS setting, you can use a provider hostname such as dns.quad9.net rather than an IP address.

On iPhones and iPads, manually changing DNS settings only affects the Wi-Fi network you're configuring. For protection across Wi-Fi and cellular networks, consider a provider's app or encrypted DNS configuration profile.

If you're using IPv6 on your network, configure the corresponding IPv6 DNS addresses provided by your chosen service as well.

And please don't change the DNS settings on your employer's computer without consulting your IT department.

A word about encrypted DNS

Changing your DNS provider doesn't automatically encrypt your DNS requests.

If your device or router supports DNS over HTTPS (DoH) or DNS over TLS (DoT), I recommend enabling it using your chosen provider's configuration instructions.

These technologies encrypt DNS requests between your device or router and your DNS provider. This makes it more difficult for others to monitor or manipulate those requests.

It doesn't, however, make you anonymous on the Internet. Your DNS provider still processes your requests, and your ISP may be able to determine which websites you visit through other information.

Is it working?

Once you've made the change, you can verify that you're using your new DNS service.

Keep in mind that some browsers, VPNs and devices use their own DNS settings, which may override the settings on your router. You may want to test several devices.

If you encounter problems, you can always restore your original DNS settings.

Is this all you need to stay safe online?

Of course not.

DNS filtering won't necessarily protect you from a newly created phishing website, malicious content hosted on a legitimate website or malware that connects directly to an IP address.

You still need to keep your devices updated, use strong passwords or passkeys, enable multi-factor authentication and be careful about what you click on.

Cybersecurity is about layers of protection. Changing your DNS is a relatively simple way to add another layer without buying new equipment or paying for another subscription.

And hopefully, it won't take you six and a half years to do it.

BTH News: 1Password Breached, AI Attacks Accelerate, and the Refrigerators Are Back

BTH News: 1Password Breached, AI Attacks Accelerate, and the Refrigerators Are Back

0
Mastodon Bluesky X LinkedIn Facebook