Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1 KB

README.md

File metadata and controls

34 lines (24 loc) · 1 KB

dohproxy

DNS over HTTPS proxy written in golang

I got interested in DNS over HTTPS after Firefox started supporting it in its latest release. I looked around to understand how it worked. Most of the implementations were too complex and did a lot of things. I read the RFC[1] and realised it was very trivial. So I tried my hand at implementing a proxy. This is just a proof of concept.

To install it you can use:

go get github.com/satran/dohproxy

This assumes you have installed go.

To run it use:

dohproxy

This will start the proxy on 5353 port.

You can resolve addresses using:

dig @127.0.0.1 -p 5353 redhat.com

Running it as a docker container

If you would like to run it as a docker container run:

docker run -it --rm -p 53:53/udp satran/dohproxy

This will run the proxy on localhost. You can update your /etc/resolv.conf file with nameserver 127.0.0.1 to resolve all dns queries using the dohproxy.

[1] https://tools.ietf.org/html/draft-ietf-doh-dns-over-https-13