Go to file
dingjun 18f6ec0139 update dependence
.gitignore DoH: add http/1.1 support
LICENSE Initial commit
README.md restructure code
client_https.go new DoH client
config.go restructure code
config_example.yaml update example config file
go.mod update dependence
go.sum update dependence
main.go add signal handle
middleware.go add proxy proto v2 support
server.go seperate protolistener
server_https.go define dns message type as constant
server_tcp.go query upstream on concurrency
server_udp.go query upstream on concurrency
upstream.go new DoH client

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