---
title: "Best DNS server for Mac: Cloudflare 1.1.1.1, Google 8.8.8.8, Quad9 compared · Kilobat Guides"
url: "https://kilobat.app/guides/best-dns-server-mac"
description: "Compare Cloudflare 1.1.1.1, Google 8.8.8.8, Quad9 and AdGuard on filtering and logging, from their own policies. Then set one on your Mac."
---

# Best DNS server for a Mac: Cloudflare, Google, Quad9 and others

No DNS server is best for everyone. The right one depends on whether you want filtering, less logging or a resolver that answers fast from your location. This guide compares what each says about itself.

**Fix this with your agent**Copies a prompt for Claude Code, Codex or any agent that can use Terminal.

My Mac has this problem: Best DNS server for a Mac: Cloudflare, Google, Quad9 and others. Read https://kilobat.app/guides/best-dns-server-mac.md and work through it with me. Install the Kilobat CLI if it’s missing: brew install seifip/kilobat/kilobat. Run the guide’s Terminal and kilobat checks yourself and tell me what you find. List the steps only I can do. Ask before you change any setting.

Applies to: macOS 13 Ventura and later. Policies are as published on the dates in the sources. · Checked: 8 November 2026

## When this helps

- You want to move from your provider's DNS to a public one and do not know which.
- You want a DNS that blocks malware, or that logs less.
- You read that one DNS is faster than another and want to check.

## Speed depends on where you are

A resolver is fast if a server is near you and its cache holds the answer. That differs by city, by provider and by hour.

So no list can name the fastest. Measure it on your own connection; see [Fastest DNS server for a Mac: how to measure it](https://kilobat.app/guides/fastest-dns-server-mac). Your provider's own DNS can win, because it is closest to you.

Speed is one of three things to weigh. The other two are what the resolver filters and what it logs.

## What each resolver says about itself

- **Cloudflare, 1.1.1.1 and 1.0.0.1.** Filtering is off. The variants 1.1.1.2 block malware, and 1.1.1.3 block malware and adult content. Cloudflare says it does not store the source IP in non-volatile storage, except sampled packets from at most 0.05% of traffic. It deletes truncated IPs and logs within 25 hours, and shares anonymised data with APNIC for research.
- **Google Public DNS, 8.8.8.8 and 8.8.4.4.** Google says it rarely blocks, and then fails to answer instead of changing results. It keeps temporary logs with your IP address for 24 to 48 hours, and longer for security and abuse. Permanent logs hold a city or region instead of your IP address. Google says it does not use the data to target ads.
- **Quad9, 9.9.9.9 and 149.112.112.112.** Blocks known malicious domains by default. Quad9 says it has no plans for content filtering. 9.9.9.10 has no blocking, and 9.9.9.11 has ECS on. Quad9 says it does not store client IP addresses, and it logs the city, state and country of the system. Its address is in Zürich, Switzerland.
- **AdGuard DNS, 94.140.14.14 and 94.140.15.15.** The default servers block ads and trackers. The non-filtering servers 94.140.14.140 and 94.140.14.141 do not block. The family servers 94.140.14.15 and 94.140.15.16 add adult content blocking and Safe Search.
- **Your network's own DNS.** Comes from your router or provider. It is needed for hotel sign-in pages and local names. Logging is set by that provider.

## How to choose

- You want the least logging: compare the retention periods above. Quad9 says it does not store client IPs. Cloudflare says the same, apart from sampled packets. Google keeps them for 24 to 48 hours.
- You want malware blocked: Quad9 by default, or Cloudflare 1.1.1.2.
- You want ads and trackers blocked: AdGuard DNS default servers.
- You want no filtering at all: Cloudflare 1.1.1.1, Google, or an unfiltered variant.
- You want the fastest: measure. See [Fastest DNS server for a Mac: how to measure it](https://kilobat.app/guides/fastest-dns-server-mac).

Filtering by DNS can block a site you want. If a page fails to load after a change, switch back and test.

Every resolver sees the names you look up. Encrypted DNS hides them from the network but not from the resolver. See [Use encrypted DNS on a Mac](https://kilobat.app/guides/encrypted-dns-mac).

## Set it on your Mac

1. Choose Apple menu › System Settings › Wi-Fi.
2. Click Details next to your network, then choose DNS.
3. Click the plus button under DNS Servers. Add the addresses of the resolver. Add both IPv4 addresses.
4. Click OK. Test a page. To go back, remove the entries.

DNS settings are per network. Each Wi-Fi network needs its own change. Flush the cache after the change; see [Flush the DNS cache on a Mac](https://kilobat.app/guides/flush-dns-cache-mac).

## With Kilobat

1. Set Cloudflare, Google or Quad9 from Terminal. macOS asks for an administrator password. Use `automatic` to go back.

   ```
   kilobat dns quad9
   ```
2. Time them against your network's DNS.

   ```
   kilobat dns-benchmark
   ```
3. In the app, Health › DNS times your network's DNS against Cloudflare, Quad9 and Google. It can switch to the fastest one on each network.
4. See [Pick a faster DNS](https://kilobat.app/guides/recipes/pick-faster-dns) for the steps in the app and the CLI.

## Questions

**Is Cloudflare or Google DNS better?**

Neither wins on every count. Cloudflare says it deletes truncated IPs and logs within 25 hours. Google keeps temporary logs with IPs for 24 to 48 hours. Speed depends on your location.

**Is Quad9 safe?**

It blocks known malicious domains by default. A blocklist can also block a harmless site by mistake. Use 9.9.9.10 to turn blocking off.

**Does a public DNS make my internet faster?**

It changes how fast names resolve. It does not raise your download speed. See [Slow DNS on a Mac](https://kilobat.app/guides/slow-dns-mac).

**Does a VPN use my DNS setting?**

Usually the VPN sets its own DNS while it runs. See [DNS queries go outside the VPN on a Mac](https://kilobat.app/guides/vpn-dns-leak-mac).

## Sources

- [Cloudflare Docs: 1.1.1.1 Public DNS Resolver privacy](https://developers.cloudflare.com/1.1.1.1/privacy/public-dns-resolver/)
- [Cloudflare Docs: Set up 1.1.1.1, including 1.1.1.1 for Families](https://developers.cloudflare.com/1.1.1.1/setup/)
- [Google for Developers: Public DNS, Your Privacy](https://developers.google.com/speed/public-dns/privacy)
- [Google for Developers: Public DNS, Introduction](https://developers.google.com/speed/public-dns/docs/intro)
- [Quad9: Service Addresses and Features](https://quad9.net/service/service-addresses-and-features/)
- [Quad9: Frequently Asked Questions](https://quad9.net/support/faq/)
- [Quad9: Privacy](https://quad9.net/service/privacy/)
- [AdGuard DNS: Public DNS setup](https://adguard-dns.io/en/public-dns.html)

Checked on 8 November 2026.

## Related guides

- [Fastest DNS server for a Mac: how to measure it](https://kilobat.app/guides/fastest-dns-server-mac): The fastest DNS server is the one that answers fastest from your network.
- [Use encrypted DNS on a Mac](https://kilobat.app/guides/encrypted-dns-mac): Normal DNS queries are not encrypted.
- [Slow DNS on a Mac](https://kilobat.app/guides/slow-dns-mac): Every new site needs a DNS lookup before it can load.
- [Best DNS for gaming: what it changes and what it does not](https://kilobat.app/guides/best-dns-for-gaming): Changing your DNS server does not lower your in-game ping.
