ncruces / go-dns

net.Resolvers with caching, opportunistic encryption, and DoT/DoH
https://pkg.go.dev/github.com/ncruces/go-dns
MIT License
41 stars 8 forks source link

DNS over TLS/HTTPS panic #1

Closed ncruces closed 4 years ago

ncruces commented 4 years ago

Both NewHTTPSResolver and NewTLSResolver panic on name resolution if no server addresses are provided.

Either validate that at least one server address is provided, or try DoT/DoH on the system's provided nameserver.