Documentation ¶
Index ¶
Constants ¶
View Source
const (
Name = "http"
)
Variables ¶
This section is empty.
Functions ¶
func ParseGoogleDoHProtocol ¶
Reference https://developers.google.com/speed/public-dns/docs/doh/json
func ParseIETFDoHProtocol ¶
Types ¶
type DNSQuestion ¶ added in v0.1.1
type DNSRR ¶ added in v0.1.1
type DNSRR struct { DNSQuestion TTL uint32 `json:"TTL"` Data string `json:"data"` }
type DNSResponse ¶ added in v0.1.1
type DNSResponse struct { Status uint32 `json:"Status"` Truncated bool `json:"TC"` RecursionDesired bool `json:"RD"` RecursionAvailable bool `json:"RA"` AuthenticatedData bool `json:"AD"` CheckingDisabled bool `json:"CD"` Question []DNSQuestion `json:"Question"` Answer []DNSRR `json:"Answer"` Authority []DNSRR `json:"Authority,omitempty"` Additional []DNSRR `json:"Additional,omitempty"` Comment string `json:"Comment,omitempty"` EdnsClientSubnet string `json:"edns_client_subnet,omitempty"` }
DNSResponse implements Google DoH protocol
func ParseDNSResponseFromMessage ¶ added in v0.1.1
func ParseDNSResponseFromMessage(msg *dns.Msg) DNSResponse
Click to show internal directories.
Click to hide internal directories.