diff --git a/Formula/dnscrypt-proxy.rb b/Formula/dnscrypt-proxy.rb index 8fcce587a8..8ee5020ea9 100644 --- a/Formula/dnscrypt-proxy.rb +++ b/Formula/dnscrypt-proxy.rb @@ -26,4 +26,55 @@ class DnscryptProxy < Formula system "./configure", *args system "make install" end + + def caveats; <<-EOS.undent + Once dnscrypt-proxy is running, you will have to update your local + DNS server to point to 127.0.0.1 in order for it to actually work. + This is generally done under System Preferences > Network > Advanced. + Once there, you will see a "DNS" tab where you can enter a list of DNS + servers. You will want to make sure that 127.0.0.1 is listed there first. + + Note: By default, dnscrypt-proxy runs on 127.0.0.1:53 under the "nobody" user. + If you would like to change these settings, you will have to edit the plist file. + + To check that dnscrypt-proxy is running properly, open Terminal and enter this at + the command prompt: + + nslookup -type=txt debug.opendns.com + + You should see something like this in the output: + + debug.opendns.com text = "dnscrypt enabled (...)" + EOS + end + + plist_options :startup => true + + def plist; <<-EOS.undent + + + + + Label + #{plist_name} + KeepAlive + + RunAtLoad + + ProgramArguments + + #{opt_prefix}/sbin/dnscrypt-proxy + --local-address=127.0.0.1:53 + --user=nobody + + UserName + root + StandardErrorPath + /dev/null + StandardOutPath + /dev/null + + + EOS + end end