dns

package
v0.0.0-...-8a3d261 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachingDNSClient

type CachingDNSClient struct {
	// contains filtered or unexported fields
}

func NewCachingDNSClient

func NewCachingDNSClient(server string) *CachingDNSClient

func (*CachingDNSClient) LookupTxt

func (c *CachingDNSClient) LookupTxt(hostname string) ([]string, error)

type SimpleDNSClient

type SimpleDNSClient struct {
	Server string
}

SimpleDNSClient uses miekg/dns to look up TXT records, and supports falling back to TCP for big records.

Exists because Go's built-in DNS client has problems with some TXT records.

func (*SimpleDNSClient) LookupTxt

func (s *SimpleDNSClient) LookupTxt(hostname string) ([]string, error)

LookupTxt queries the underlying server for TXT records for the given hostname.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL