Manage DNSCrypt from the macOS menu bar (BitBar plugin)
MIT License
DNSCrypt Menu is a BitBar plugin to manage the DNSCrypt proxy from the macOS menu bar.
DNSCrypt Menu also works as a tool to configure your default DNS setup.
$HOME/.config/dnscrypt/backup-*
, followed by the service name and -initial
, e.g. backup-Wi-Fi-initial
; backed-up resolvers can be reloaded at any time./etc/resolv.conf
), configured resolvers (Network preferences), internal fallback resolver (DNSCrypt), configured fallback resolvers (DNSCrypt Menu), public DNS IP with hostname, Whois & ping, local area DNSdnscrypt-proxy
version 2, e.g. with Homebrew (recommended): brew install dnscrypt-proxy
dnscrypt-proxy
by editing the .toml
configuration fileDNSCryptMenu.30s.sh
to your BitBar plugins folder
The file local.lcars.DNSCryptLoopback.plist
is a LaunchDaemon for demonstration purposes. If you use a different proxy address than the default 127.0.0.1
, you need to map your alternate address at every system boot for DNSCrypt to work. This particular daemon runs the command ifconfig lo0 alias 127.0.0.54
. Edit to your needs and install/enable using the following commands:
cp local.lcars.DNSCryptLoopback.plist /Library/LaunchDaemons/local.lcars.DNSCryptLoopback.plist
chmod 0644 /Library/LaunchDaemons/local.lcars.DNSCryptLoopback.plist
launchctl load /Library/LaunchDaemons/local.lcars DNSCryptLoopback.plist
netstat -nr | grep "^127\.0\.0\..*lo0$"
Stop and restart the plugin from external scripts with:
mv $HOME/.config/dnscrypt/run $HOME/.config/dnscrypt/stop
mv $HOME/.config/dnscrypt/stop $HOME/.config/dnscrypt/run
This BitBar plugin has only been tested on El Capitan (OS X 10.11.6); IPv6 network setups have not been tested; please report any issues or create a pull request.
Thank you to Frank Denis for kicking this off with his original plugin.