Created
November 28, 2017 13:46
-
-
Save anonymous/a8e04f03bdcab5b598aee18cbfedd60a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
almost functioning script
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