Quick Reference
Configuration Endpoints
Use these addresses across all methods below.
🔒 DNS over HTTPS
🛡 DNS over TLS
§ I
Network Settings
The simplest approach — native to macOS 14 Sonoma and later, no extra tools needed.
Method 1 — System Settings (macOS 14+ Sonoma)
Click the Apple menu → "System Settings".
Click "Network" in the sidebar.
Click your active network connection — Wi-Fi or Ethernet.
Click "Details" → select the "DNS" tab.
Click "+" under DNS Servers and enter:
Click "OK" then "Apply" to save the configuration.
§ II
Terminal
Works on all macOS versions. Use when the GUI method isn't available or for scripted setup.
Method 2 — Terminal Commands
Open Terminal and run the following. Replace "Wi-Fi" with your network service name from the first command.
§ III
Configuration Profile
Ideal for deploying across multiple Macs or managing settings through an MDM.
Method 3 — Mobileconfig Profile
Copy the XML below into a file named unrulycitizen-dns.mobileconfig, then double-click it to install via System Settings → Privacy & Security → Profiles.
§ IV
Browser-Specific DoH
Encrypts DNS within a single browser without touching system settings — works on all macOS versions.
Method 4 — Firefox & Chrome
Firefox
Navigate to about:config in Firefox and set the following preferences:
Chrome / Chromium
Navigate to chrome://settings/security, enable "Use secure DNS", select "Custom", and enter:
Alternatively, launch Chrome from Terminal with the flag already set:
Confirm It's Working
Verification
Run these commands to confirm DoH is active and no unencrypted queries are leaking.
Check DNS Configuration
Test the DoH Endpoint Directly
Install dog via Homebrew (brew install dog), then run:
A valid JSON response confirms the encrypted endpoint is reachable.
Common Issues
Troubleshooting
If something isn't working, check these first.
DoH Not Working?
- macOS 14 (Sonoma) or later required for native DoH in Settings
- Confirm port 443 (HTTPS) is open through your firewall
- Verify the DoH endpoint URL is exactly correct
- Disable VPN or proxy temporarily and retest
- Restart mDNSResponder:
sudo killall -HUP mDNSResponder
Common macOS Issues
- macOS 13 or earlier: use the Terminal or browser method
- VPN conflicts: some VPNs override DNS settings silently
- Corporate networks: may block external DNS servers
- Certificate errors: ensure system date and time are correct
- Multiple interfaces: configure each network service separately
Version Support
macOS Compatibility
Choose the right method for your macOS version.
macOS 14+ Sonoma
Native DoH in System Settings. Recommended — no extra tools.
macOS 11–13
Use Terminal commands or install a configuration profile.
All Versions
Browser-specific DoH works everywhere, any macOS release.
Need More Help?
Reach out or explore other platform guides in the Knowledge Base.