A DNS-over-Https proxy and router
Download from the latest release page,
or install from source
$ go get -u github.com/major1201/dohproxy
or run with Docker
docker run -d \
--name dohproxy \
-v /etc/dohproxy:/etc/dohproxy \
-p 5353:53/udp \
major1201/dohproxy
Start dohproxy with config /etc/dohproxy.yml
dohproxy
Start dohproxy with a custom config path
dohproxy -c /home/major1201/my-doh-config.yml
Service
# install as a service
dohproxy -c /home/major1201/my-doh-config.yml --service install
# start the service
dohproxy --service start
# stop the service
dohproxy --service stop
# uninstall the service
dohproxy --service uninstall
log:
stdout: stdout # default: stdout, log-to-file on Windows is not supported
stderr: /var/log/dohproxy.err # default: stderr, log-to-file on Windows is not supported
level: info # default: debug, choices: debug, info, warn(warning), error, dpanic, panic, fatal
listen:
- type: udp
address: 127.0.0.1:53
- type: tcp
address: 127.0.0.1:53
upstreams:
google-public:
type: dns
address: 8.8.8.8:53
my-corp-dns:
type: dns
address: 192.168.53.1:53
doh-get-with-proxy:
type: doh-get
address: https://some-doh-server-i-cant.com/dns-query
proxy: socks5://127.0.0.1:1080
doh-post:
type: doh-post
address: https://cloudflare-dns.com/dns-query
rules:
- fqdn:cloudflare-dns.com google-public
- fqdn:www.my-dev-server.com 10.0.31.1
- keyword:mycorp.com my-corp-dns
- suffix:mybiz.com my-corp-dns
- suffix:never-response.com blackhole
- suffix:adxxx.com reject
- wildcard:* doh-post
listen types:
upstream types:
rule format: [fqdn|prefix|suffix|keyword|wildcard|regex]:expression upstream|blackhole|reject|static_ip
upstreams fieldlog.stdout and log.stderr part in config file only support stdout on Windows platform, due to zap package limitJust fork the repository and open a pull request with your changes.
MIT
Content type
Image
Digest
Size
14.8 MB
Last updated
over 7 years ago
docker pull major1201/dohproxy