Go to file
dingjun 7096afd7d6 update miekg/dns to 1.1.43
.gitignore DoH: add http/1.1 support
LICENSE Initial commit
README.md update README
client_https.go new DoH client
config.go restructure code
config_example.yaml update example config file
go.mod update miekg/dns to 1.1.43
go.sum update miekg/dns to 1.1.43
main.go add signal handle
middleware.go add proxy proto v2 support
server.go remove unused field
server_https.go not check content-type
server_tcp.go query upstream on concurrency
server_udp.go query upstream on concurrency
upstream.go fix crash issue

README.md

gdns

a dns proxy server write by go

Features

support tcp, udp, tls, DoH(dns over https/http2)

Usage

go get github.com/fangdingjun/gdns
cp $GOPATH/src/github.com/fangdingjun/gdns/config_example.yaml config.yaml
vim config.yaml
$GOPATH/bin/gdns -c config.yaml -log_level DEBUG

Third-part library

use dns library to parse the dns message