Versions in this module Expand all Collapse all v0 v0.6.0 Feb 3, 2025 Changes in this version + func ExtractRecords[T uint16 | string](records *DNSRecords, qtype T) ([]string, error) + func GetQueryTypeFromString(testType string) (uint16, error) + func QueryAndExtract(client IDNSClient, testType, dnsServer, domain string) ([]string, error) + func QueryDNSRecord(client IDNSClient, domain string, server string, qtype uint16, ...) error + type DNSRecords struct + AAAARecords []string + ARecords []string + CNAMERecords []string + MXRecords []MXRecord + NSRecords []string + TXTRecords []string + func QueryDNS(domain string, dnsServer string, client IDNSClient) (*DNSRecords, error) + type IDNSClient interface + Exchange func(msg *dns.Msg, server string) (*dns.Msg, time.Duration, error) + type MXRecord struct + Host string + Pref uint16 + type MockIDNSClient struct + MockExchange func(*dns.Msg, string) (*dns.Msg, time.Duration, error) + func (m *MockIDNSClient) Exchange(msg *dns.Msg, server string) (*dns.Msg, time.Duration, error) v0.6.0-rc1 Feb 2, 2025