Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNS ¶
type DNS interface { LookupIP(domain string) ([]net.IP, error) Record(domain string, _ dnsmessage.Type) (IPResponse, error) Do([]byte) ([]byte, error) // Resolver() *net.Resolver io.Closer }
func NewErrorDNS ¶
type IPResponse ¶
func NewIPResponse ¶
func NewIPResponse(ips []net.IP, ttl uint32) IPResponse
type Record ¶
type Record interface { A() IPResponse AAAA() IPResponse }
func NewRecord ¶
func NewRecord(a IPResponse, aaaa IPResponse) Record
Click to show internal directories.
Click to hide internal directories.