A Privacy-Conscious, DNS-over-HTTP-Enabled, Blacklist-Incorporating SOCKS5 Proxy
1.2K

doh is a SOCKS5 proxy server with several privacy features:
All DNS queries go through Google's DNS-over-HTTP Service.
Respects block lists. You fill a directory with domains you want to block, and doh will deny all DNS queries to the block list. (Okay so not all DNS queries go through Google's DOH service, because we have to find the DOH service.)
doh supports fixed DNS mappings. For example, we can map dns.google.com to 172.217.9.206. This solves the problem of having to make a DNS request to find Google's DOH service, as well as providing you greater control over where your traffic is going if you need it.
doh can (optionally) block all non-port-443 (TLS) traffic.
Typically, DNS requests are the weak link in the network-traffic-privacy chain. With doh, you can send all traffic over TLS, which means greater security for you.
> doh.exe --help
Usage: doh [address] [port]:
--address arg (=127.0.0.1) address (e.g. 0.0.0.0)
--port arg (=1080) port (e.g.1080)
-b [ --blockdir ] arg (=block) directory containing blocked domains
-h [ --hostdir ] arg (=host) directory containing hard-coded hosts
-t [ --tls_only ] force TLS only
-d [ --dnsssec ] force DNSSEC
-u [ --user ] arg username for authentication
-p [ --password ] arg password for authentication
--threads arg (=2) number of threads
--help produce help message
If you have Docker installed, running doh is easy:
> docker run -p 1080:1080 quay.io/jlospinoso/doh --address 0.0.0.0
Open Firefox, then:
Now, you can use Firefox to browse the web without exposing observable DNS requests.
Prerequisites:
git clone [email protected]:JLospinoso/doh
cd doh
mkdir build
cd build
cmake .. -G "Visual Studio 15 2017"
Now, open doh.sln in the doh/build folder. You can build from here.
Prerequisites:
git clone [email protected]:JLospinoso/doh
cd doh
mkdir build
cd build
cmake ..
make
Prerequisites:
git clone [email protected]:JLospinoso/doh
cd doh
docker build -t jlospinoso/doh:latest .
Content type
Image
Digest
Size
848.1 MB
Last updated
over 7 years ago
docker pull jlospinoso/doh