Documentation ¶
Overview ¶
Package dnsclient contains logic to interact with different DoH providers ref: https://github.com/curl/curl/wiki/DNS-over-HTTPS
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudflareDNS ¶
type CloudflareDNS struct {
BaseURL string
}
CloudflareDNS is a Client instance resolving using Cloudflares DNS-over-HTTPS service
func NewCloudFlareDNS ¶
func NewCloudFlareDNS() *CloudflareDNS
NewCloudFlareDNS starts a new Cloudflare DNS-over-HTTPS resolver Client
type GoogleDNS ¶
type GoogleDNS struct {
BaseURL string
}
GoogleDNS is a Client instance resolving using Googles DNS-over-HTTPS service
func NewGoogleDNS ¶
func NewGoogleDNS() *GoogleDNS
NewGoogleDNS starts a new Google DNS-over-HTTPS resolver Client
type GoogleFrontDNS ¶
type GoogleFrontDNS struct {
BaseURL string
}
GoogleFrontDNS is a Client instance resolving using Googles DNS-over-HTTPS service, fronted using www.google.com
func NewGoogleFrontDNS ¶
func NewGoogleFrontDNS() *GoogleFrontDNS
NewGoogleFrontDNS starts a new Google DNS-over-HTTPS resolver Client The Host header for this request is updated in the client itself
type Quad9DNS ¶
type Quad9DNS struct {
BaseURL string
}
Quad9DNS is a Client instance resolving using Quad9's DNS-over-HTTPS service
func NewQuad9DNS ¶
func NewQuad9DNS() *Quad9DNS
NewQuad9DNS starts a new Quad9 DNS-over-HTTPS resolver Client