Homebrew formula for rcvd, privacy-first DNS engine with encrypted egress only, DoQ/DoT/DoH.
Works on macOS (Apple Silicon and Intel) and Linux (Linuxbrew).
- Project: https://github.com/rcvd-dns/rcvd
- Website: https://rcvd.net
- Alternate (backup) homepage: https://gitlab.com/rcvd-dns/rcvd
brew install rcvd-dns/rcvd/rcvdInstalls the prebuilt release binary.
The fully qualified name trusts only this formula, which Homebrew 6.0+ requires for third-party taps.
See https://docs.brew.sh/Tap-Trust
On macOS, run rcvd on port 53. This is the only configuration we recommend on macOS, and the only one that works as the system resolver. macOS sends DNS only to port 53 (mDNSResponder has no port setting), so any other port will not be used as intended. This is a macOS limitation, not an rcvd one.
On macOS the formula installs a ready-to-use config at $(brew --prefix)/etc/rcvd/rcvd.toml.
It listens on 127.0.0.1:53, forwards to AdGuard (DoQ), Cloudflare (DoT) and Quad9 (DoH) with their IP
addresses pinned, validates DNSSEC, and logs to $(brew --prefix)/var/log/rcvd/rcvd.log.
Binding port 53 needs root, so the service runs as a root LaunchDaemon (sh.brew.rcvd, also starts
at boot). The upstream IPs are pinned because once the Mac points its DNS at rcvd, rcvd cannot look
up its own upstreams by name.
-
Start the service:
sudo brew services start rcvd
Manage and check the service with
sudo
sudo brew services listshould show:rcvd started root /Library/LaunchDaemons/sh.brew.rcvd.plist -
Check that rcvd answers before pointing the system at it:
dig @127.0.0.1 example.com sudo rcvd -config "$(brew --prefix)/etc/rcvd/rcvd.toml" -stats -
Point your active network service at rcvd. First list the services and find the one your Mac actually uses (the name varies: "Wi-Fi", "Ethernet", or a USB adapter such as "USB 10/100/1000 LAN"), then set its DNS. Substitute your own service name for
"Wi-Fi"below:networksetup -listallnetworkservices sudo networksetup -setdnsservers "Wi-Fi" 127.0.0.1 scutil --dns | grep nameserver
Repeat the
-setdnsserversline for every service you actually use. Do not set it on a service whose link is down: macOS keeps that stale entry, and if rcvd is later removed it can break DNS with no working resolver left. While rcvd is the system resolver, stopping it stops DNS on the Mac. -
Confirm the Mac is really resolving through rcvd (not just configured to). rcvd's query counter should climb as the system resolves names:
sudo lsof -nP -iUDP:53 | grep rcvd # rcvd owns port 53 sudo rcvd -config "$(brew --prefix)/etc/rcvd/rcvd.toml" -stats | grep 'Total handled'
Resolve something, run the
-statsline again, andTotal handledshould have increased.
To undo, set the same service you changed, back to automatic (DHCP-provided) DNS, then stop the service. Confirm name resolution still works afterward; if it does not, set that service to a known working resolver explicitly.
sudo networksetup -setdnsservers "Wi-Fi" empty
sudo brew services stop rcvdRunning the service with sudo makes Homebrew change some rcvd files to root ownership. If a later
brew upgrade or brew uninstall reports permission errors, stop the service with
sudo brew services stop rcvd, run the command, then start the service again with sudo.
Other example configs live in
$(brew --prefix)/opt/rcvd/share/rcvd/; see man rcvd for every option. The prefix is
/opt/homebrew on Apple Silicon and /usr/local on Intel.
The formula installs a ready-to-use config at $(brew --prefix)/etc/rcvd/rcvd.toml, with the same
upstreams as on macOS, listening on 127.0.0.1:5300 (no root needed). Start the service:
brew services start rcvd
dig @127.0.0.1 -p 5300 example.combrew services on Linux runs rcvd as a systemd user service, which stops when you log out. On a
server, or any box you reach over SSH, enable lingering so rcvd keeps running and starts at boot:
sudo loginctl enable-linger $USERbrew info rcvd shows the full caveats, including optional UDP buffer tuning for DoQ.
brew update && brew upgrade rcvdIf rcvd runs as a root service, restart it after upgrading:
sudo brew services restart rcvdHomebrew never overwrites a config you have edited. After an upgrade, the new default appears
beside it as rcvd.toml.default.
-
Report packaging problems in this repository.
-
Report
rcvdbugs at https://github.com/rcvd-dns/rcvd/issues