Documentation ¶
Index ¶
- func CheckAvailability(domain string, ns *dns.NS, c *dns.Client) (*dns.Msg, time.Duration, error)
- func CheckSOA(line string, servers []string, c *dns.Client) (*dns.Msg, error)
- func ExchangeWithRetry(m *dns.Msg, c *dns.Client, server []string) (*dns.Msg, time.Duration, error)
- func FindKey(dnskeys *dns.Msg, rrsig *dns.RRSIG) *dns.DNSKEY
- func GetAAAARecords(line string, servers []string, c *dns.Client) ([]net.IP, error)
- func GetARecords(line string, servers []string, c *dns.Client) ([]net.IP, error)
- func GetRecordSet(line string, t uint16, server []string, c *dns.Client) (*dns.Msg, time.Duration, error)
- func GetRecordSetTCP(line string, t uint16, server string, c *dns.Client) (*dns.Msg, time.Duration, error)
- func GetRecordSetWithDNSSEC(line string, t uint16, servers []string, c *dns.Client) (*dns.Msg, time.Duration, error)
- func GetRecursivityAndEDNS(line string, server string, port string, c *dns.Client) (*dns.Msg, time.Duration, error)
- func Less(a, b string) int
- func ZoneTransfer(line string, ns string) (chan *dns.Envelope, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAvailability ¶
Checks if a domain name has an A record
func ExchangeWithRetry ¶
Make a DNS request retrying 3 times
func GetAAAARecords ¶
Request for the AAAA records for the given domain
func GetARecords ¶
Request for the A records for the given domain
func GetRecordSet ¶
func GetRecordSet(line string, t uint16, server []string, c *dns.Client) (*dns.Msg, time.Duration, error)
Makes a request for a recor set
func GetRecordSetTCP ¶
func GetRecordSetTCP(line string, t uint16, server string, c *dns.Client) (*dns.Msg, time.Duration, error)
Request a record set using TCP
func GetRecordSetWithDNSSEC ¶
func GetRecordSetWithDNSSEC(line string, t uint16, servers []string, c *dns.Client) (*dns.Msg, time.Duration, error)
Request a record set using DNSSEC
func GetRecursivityAndEDNS ¶
func GetRecursivityAndEDNS(line string, server string, port string, c *dns.Client) (*dns.Msg, time.Duration, error)
Makes a request using recursivity and EDNS
func Less ¶
less returns <0 when a is less than b, 0 when they are equal and >0 when a is larger than b. The function orders names in DNSSEC canonical order: RFC 4034s section-6.1
See http://bert-hubert.blogspot.co.uk/2015/10/how-to-do-fast-canonical-ordering-of.html for a blog article on this implementation, although here we still go label by label.
The values of a and b are *not* lowercased before the comparison!
Types ¶
This section is empty.