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

NewHTTPSResolver should accept URI Template #6

Closed ncruces closed 4 years ago

ncruces commented 4 years ago

See RFC 8484, Section 3.

Care must be taken to resolve the URI template host name on resolver creation, otherwise we might get into a situation where the resolver is asked to resolve itself recursively.