Skip to content

Latest commit

History

History
31 lines (24 loc) 路 521 Bytes

Readme.md

File metadata and controls

31 lines (24 loc) 路 521 Bytes

DNS forward over UDP

馃寪 DNS over UDP: receiving a request from a client and then forwarding that request to DNS Resolver to obtain the answer.

Build and Run

go build main.go && sudo ./main

Configuration

// default config
var config = &DNSConfig{
	HostsFilePath: "/etc/hosts",
	Laddr:         ":5053",
	ListRaddr:     []string{"8.8.8.8:53", "8.8.4.4:53", "1.1.1.1:53", "9.9.9.9:53"},
	UseWildCard:   true,
	Timeout:       15,
}

Test

go test

License

Apache 3.0