Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TypeA = Type("A") TypeAAAA = Type("AAAA") TypeCNAME = Type("CNAME") TypeMX = Type("MX") TypeTXT = Type("TXT") TypeSPF = Type("SPF") TypeNS = Type("NS") TypeSOA = Type("SOA") TypePTR = Type("PTR") TypeANY = Type("ANY") )
Supported dns query type
Functions ¶
Types ¶
type Answer ¶
type Answer struct { Name string `json:"name"` Type int `json:"type"` TTL int `json:"TTL"` Data string `json:"data"` }
Answer is dns query answer
type Response ¶
type Response struct { Status int `json:"Status"` TC bool `json:"TC"` RD bool `json:"RD"` RA bool `json:"RA"` AD bool `json:"AD"` CD bool `json:"CD"` Question []Question `json:"Question"` Answer []Answer `json:"Answer"` Provider string `json:"provider"` }
Response is dns query response
Click to show internal directories.
Click to hide internal directories.