How to Change DNS Server on Mac

The Domain Name System Override Vector

When operating within the macOS Darwin architecture, every time you execute a URL query (e.g., typing `apple.com` into Safari), the core network daemon must translate that string into a routable IPv4 or IPv6 integer. By default, the OS relies on the DNS resolver provisioned by your local router (typically your ISP’s server). ISP resolvers are notoriously sluggish, prone to catastrophic outages, and frequently log your telemetry for data brokering. To mathematically accelerate your network latency and bypass localized censorship firewalls, you must instruct the macOS kernel to sever its connection to the ISP’s DNS and hardcode a direct routing path to a global, high-speed resolver (like Cloudflare’s `1.1.1.1` or Google’s `8.8.8.8`).

How to Change DNS Server on Mac

Apple engineered this execution pathway strictly within the advanced network matrices, requiring you to manually shred the dynamic DHCP resolver strings and inject your own static integers.

1. Phase 1: Target Acquisition (Summoning the Network Matrix):
* Look to the absolute top-left corner of the master menu bar.
* Click the Apple Logo > click System Settings… (or System Preferences… on older architectures).
* In the stark left-hand navigation sidebar, click explicitly on Network.
* In the primary right-hand pane, locate your active connection (indicated by a green dot or “Connected”, usually Wi-Fi or Ethernet) and click it.
2. Phase 2: Navigating the Advanced Registry:
* On macOS Ventura/Sonoma: Click the stark Details… button next to your active network name.
* On legacy macOS: Click the Advanced… button.
* The UI Mutation: A localized modal will drop down. Look to the horizontal or left-aligned ribbon and select the tab explicitly labelled DNS.
3. Phase 3: The Execution Trigger (The DNS Rewrite):
* The left column displays the active “DNS Servers”. The strings currently listed (often greyed out) are the default ISP IPs provided by your router.
* Click the stark Plus (+) button at the bottom of the column.
* The Injection: Inject your primary DNS integer. Type exactly 1.1.1.1 (for Cloudflare) or 8.8.8.8 (for Google). Press Enter.
* Click the Plus (+) button again to inject the fallback daemon.
* Type exactly 1.0.0.1 (Cloudflare fallback) or 8.8.4.4 (Google fallback). Press Enter.
* The Override: The moment you inject a static IP, the Darwin kernel mathematically overrides and ignores the greyed-out default IPs.
4. Phase 4: The Core Re-initialization:
* Click the stark button explicitly labelled OK.
* (On legacy macOS, you must also click Apply on the primary Network screen).
* The kernel instantly flushes the localized `mDNSResponder` cache and routes all future URL translations through the new matrix.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.