Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectRRs ¶
CollectRRs takes a slice of [github.com/miekg/dns.RR]s and returns a slice of with the [github.com/miekg/dns.RR]s of type T. If not such records exist, the function returns a zero-length slice.
func OrderCNAMEs ¶
OrderCNAMEs takes a slice of *github.com/miekg/dns.CNAME and attempts to the sort the slice such that entry i's Target is entry i's Name. We call this a "CNAME chain". If the sort is successful, OrderCNAMEs returns true; otherwise, it returns false. Note that, even if OrderCNAMEs cannot sort the entries into CNAME chain, the function may permute the order of the elements in the slice. An argument that is nil slice or a zero-length slice is considered sorted.
Types ¶
type AddressRecord ¶
Covers both A and AAAA records
func CollectAAAARecords ¶
func CollectAAAARecords(rrs []dns.RR) []*AddressRecord
func CollectARecords ¶
func CollectARecords(rrs []dns.RR) []*AddressRecord