Skip to content

Instantly share code, notes, and snippets.

Created November 28, 2017 13:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a8e04f03bdcab5b598aee18cbfedd60a to your computer and use it in GitHub Desktop.
Save anonymous/a8e04f03bdcab5b598aee18cbfedd60a to your computer and use it in GitHub Desktop.
#!/bin/bash
apt-get install dnscrypt-proxy
sed -i 's/fvz-anyone/cisco/g' /etc/dnscrypt-proxy/dnscrypt-proxy.conf
grep '127' /lib/systemd/system/dnscrypt-proxy.socket
sed -i 's/127.0.2.1/127.0.0.1/g' /lib/systemd/system/dnscrypt-proxy.socket
grep '127' /lib/systemd/system/dsncrypt-proxy.socket
systemctl daemon-reload
systemctl stop dnscrypt-proxy.socket
systemctl start dnscrypt-proxy
systemctl disable systemd-resolved.service
rm -v /etc/resolv.conf
sudo systemctl stop systemd-resolved.service
dig debug.opendns.com txt
nslookup -type=txt debug.opendns.com
sudo lsof -i -n | grep -i dnscrypt
@naishoya
Copy link

almost functioning script

  • correcting line 6
    from
    grep '127' /lib/systemd/system/dsncrypt-proxy.socket
    to
    grep '127' /lib/systemd/system/dnscrypt-proxy.socket
    will avoid the error
    grep: /lib/systemd/system/dsncrypt-proxy.socket: No such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment