Versions in this module Expand all Collapse all v1 v1.0.1 May 13, 2021 Changes in this version type Resolver + Client *http.Client v1.0.0 Mar 22, 2021 Changes in this version + const A + const AAAA + const ANYCLASS + const CH + const CNAME + const CS + const HS + const IN + const MX + const NS + const PTR + const SOA + const SRV + const TXT + var ErrFormatError = errors.New("Format error") + var ErrNameError = errors.New("Name error") + var ErrNotAResponse = errors.New("the message the server sent us isn't a response") + var ErrNotIN = errors.New("class must be IN (Internet) (or ANYCLASS (*), which includes IN)") + var ErrNotImplemented = errors.New("Not implemented") + var ErrNotStandardQuery = errors.New("only standard queries are supported") + var ErrRefused = errors.New("Refused") + var ErrServerFailure = errors.New("Server failure") + var ErrTruncated = errors.New("truncated messages aren't supported") + type AAAARecord struct + IP6 string + type ARecord struct + IP4 string + type CNAMERecord struct + CNAME string + type DNSClass uint16 + type DNSType uint16 + type MXRecord net.MX + type NSRecord net.NS + type PTRRecord struct + PTR string + type Resolver struct + Class DNSClass + Config *tls.Config + Host string + func (r *Resolver) LookupA(fqdn string) (recs []*ARecord, ttls []uint32, err error) + func (r *Resolver) LookupAAAA(fqdn string) (recs []*AAAARecord, ttls []uint32, err error) + func (r *Resolver) LookupCNAME(fqdn string) (recs []*CNAMERecord, ttls []uint32, err error) + func (r *Resolver) LookupMX(fqdn string) (recs []*MXRecord, ttls []uint32, err error) + func (r *Resolver) LookupNS(fqdn string) (recs []*NSRecord, ttls []uint32, err error) + func (r *Resolver) LookupPTR(fqdn string) (recs []*PTRRecord, ttls []uint32, err error) + func (r *Resolver) LookupSOA(fqdn string) (recs []*SOARecord, ttls []uint32, err error) + func (r *Resolver) LookupSRV(fqdn string) (recs []*SRVRecord, ttls []uint32, err error) + func (r *Resolver) LookupService(service, network, domain string) (recs []*SRVRecord, ttls []uint32, err error) + func (r *Resolver) LookupTXT(fqdn string) (recs []*TXTRecord, ttls []uint32, err error) + type SOARecord struct + Expire int32 + Minimum uint32 + PrimaryNS string + Refresh int32 + RespMailbox string + Retry int32 + Serial uint32 + type SRVRecord net.SRV + type TXTRecord struct + TXT string