What it controls

Block, answer, or route each lookup

DNS is how your Mac finds the address of each website and app it connects to. MacDNS checks these lookups against your blocking rules. You can also name devices on your own network and send work or home-lab names to the DNS server that knows them.

Let DNS providers compete

MacDNS asks Cloudflare, Google, and Quad9 at once or milliseconds apart, and uses the first answer that finds the site. One slow provider does not have to hold up the lookup.

Choose what to block

Adjust blocking for ads and trackers, known threats, adult content, gambling, social media, and miscellaneous domains. Each category has its own setting.

Route private domains

Send work or home-lab names to your own DNS server. Other names go to the providers you selected.

Keep DNS answers cached

MacDNS remembers recent DNS answers, even after a restart, so a site you revisit can skip the lookup. Prefetch renews answers you used recently shortly before they expire. Serve Expired can reuse an older answer when the providers are slow or can’t be reached.

DNS rebinding protection

Guards against a trick where a website uses DNS to make your browser reach devices on your home or office network, such as your router. MacDNS removes those private addresses from public answers. Your own forward zones and local records can still use them.

Check your protection

See whether protection is on, whether MacDNS is still starting, or whether you need to restart. The status comes from the running components.

Multiple DNS providers

Keep lookups moving when one provider is slow

A slow DNS lookup can delay opening a site or connecting an app. With multiple providers enabled, MacDNS can ask them at the same time or start them milliseconds apart, then use the first answer that finds the site.

Compare the query modes

Answer Refinement

Refine the next answer

DNS providers can return different server addresses for the same name. MacDNS compares their answers in the background. When they disagree and Answer Refinement is on, MacDNS pings the addresses and keeps the one that replies fastest for later lookups. The first reply does not wait for these checks.

How answer refinement works

Major release

What’s new in MacDNS 2

Choose your providers, keep DNS answers across restarts, and check that protection is active. Version 2 adds these controls and no longer runs a separate DNS program.

Read the full release notes

Built-in DNS engine

MacDNS now does its DNS work itself. Version 1 ran a separate DNS program.

Provider and dispatch controls

Turn on Cloudflare, Google, or Quad9 and choose whether MacDNS asks them all at once (Parallel), milliseconds apart (Staggered), or one at a time (Sequential).

Persistent cache

Saved DNS answers survive restarts. Prefetch renews answers you used recently shortly before they expire. Serve Expired can reuse an older answer when a fresh one is slow or unavailable.

Verified protection status

MacDNS shows Protection Active only after it confirms that your Mac’s DNS lookups reach MacDNS.

Request handling

How MacDNS handles DNS

Your rules determine whether MacDNS blocks a domain, answers locally, or asks a DNS server. Public lookups use your selected encrypted providers.

  1. 01Receive

    A macOS system extension hands DNS lookups from your Mac to MacDNS.

  2. 02Apply your rules

    MacDNS checks your local records, blocklists, and allowlist exceptions. Routes for private names, yours or your network’s, take priority over public providers.

  3. 03Look up public names

    MacDNS reuses a saved answer or asks your selected providers over an encrypted connection, using the Dispatch mode you chose.

  4. 04Filter and return

    Rebinding protection removes private network addresses from public answers. MacDNS keeps the DNSSEC signatures apps asked for and saves answers it can reuse.

Public source code

Inspect what runs on your Mac

MacDNS handles every DNS lookup on your computer, so the source code is public on GitHub. You can inspect how it works, review it for security, suggest features, or star the project.

Audit what runs on your Mac

Read how MacDNS handles DNS lookups, applies blocklists, routes private domains, and connects to your selected providers.

Suggest features and report bugs

Open an issue on GitHub to request a feature, report a problem, or follow what is changing.

Star the repository

Star MacDNS on GitHub to follow new releases and help other Mac users discover the project.

Free trial

Try MacDNS for 21 days

Every feature included. No account or card required. For macOS 14 or later.