Documentation ¶
Overview ¶
Package dnsx contains the library logic
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = Options{ BaseResolvers: DefaultResolvers, MaxRetries: 5, QuestionTypes: []uint16{miekgdns.TypeA}, TraceMaxRecursion: math.MaxUint16, Hostsfile: true, }
DefaultOptions contains the default configuration options
View Source
var DefaultResolvers = []string{
"udp:1.1.1.1:53",
"udp:1.0.0.1:53",
"udp:8.8.8.8:53",
"udp:8.8.4.4:53",
}
DefaultResolvers contains the list of resolvers known to be trusted.
Functions ¶
func StringToRequestType ¶
StringToRequestType conversion helper
Types ¶
type DNSX ¶
type DNSX struct { Options *Options // contains filtered or unexported fields }
DNSX is structure to perform dns lookups
func (*DNSX) QueryMultiple ¶
func (d *DNSX) QueryMultiple(hostname string) (*retryabledns.DNSData, error)
QueryMultiple performs a DNS question of the specified types and returns raw responses
Click to show internal directories.
Click to hide internal directories.