Using DNSCrypt Resolvers on macOS
This tutorial will guide you through the steps to required to use the DNSCrypt resolvers on a macOS system:
Step 1: Install Homebrew
If you don't have Homebrew installed, you can install it by running the following command in your Terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Step 2: Install DNSCrypt-Proxy
Once Homebrew is installed, you can install dnscrypt-proxy
by running:
brew install dnscrypt-proxy
Step 3: Configure DNSCrypt-Proxy
After installing dnscrypt-proxy
, you need to configure it to use the DNSCrypt resolvers from dnscry.pt. Open the configuration file with a text editor:
vim /usr/local/etc/dnscrypt-proxy.toml
Add the following configuration to use the dnscry.pt DNSCrypt resolvers:
[sources.dnscry-pt-resolvers]
urls = ["https://www.dnscry.pt/resolvers.md"]
minisign_key = "RWQM31Nwkqh01x88SvrBL8djp1NH56Rb4mKLHz16K7qsXgEomnDv6ziQ"
cache_file = "dnscry.pt-resolvers.md"
refresh_delay = 72
prefix = "dnscry.pt-"
Step 4: Start DNSCrypt-Proxy
To start dnscrypt-proxy
and ensure it runs at startup, use the following commands:
sudo brew services start dnscrypt-proxy
Step 5: Configure Network Settings
- Open System Preferences and go to Network.
- Select your active network connection (e.g., Wi-Fi or Ethernet) and click Advanced.
- Go to the DNS tab.
- Click the + button and add
127.0.0.1
as the DNS server. - Click OK and then Apply to save the changes.