Documentation
¶
Index ¶
- func IsPolluted(domain string) (bool, error)
- func NewMsg(Type uint16, domain string) *dns.Msg
- type Dig
- func (d *Dig) A(domain string) ([]*dns.A, error)
- func (d *Dig) AAAA(domain string) ([]*dns.AAAA, error)
- func (d *Dig) At(host string) error
- func (d *Dig) CAA(domain string) ([]*dns.CAA, error)
- func (d *Dig) CNAME(domain string) ([]*dns.CNAME, error)
- func (d *Dig) Exchange(m *dns.Msg) (*dns.Msg, error)
- func (d *Dig) GetMsg(Type uint16, domain string) (*dns.Msg, error)
- func (d *Dig) MX(domain string) ([]*dns.MX, error)
- func (d *Dig) NS(domain string) ([]*dns.NS, error)
- func (d *Dig) PTR(domain string) ([]*dns.PTR, error)
- func (d *Dig) SOA(domain string) ([]*dns.SOA, error)
- func (d *Dig) SPF(domain string) ([]*dns.SPF, error)
- func (d *Dig) SRV(domain string) ([]*dns.SRV, error)
- func (d *Dig) SetBackupDNS(host string) error
- func (d *Dig) SetDNS(host string) error
- func (d *Dig) SetEDNS0ClientSubnet(clientip string) error
- func (d *Dig) SetTimeOut(t time.Duration)
- func (d *Dig) TXT(domain string) ([]*dns.TXT, error)
- func (d *Dig) Trace(domain string) ([]TraceResponse, error)
- func (d *Dig) TraceForRecord(domain string, msgType uint16) ([]TraceResponse, error)
- func (d Dig) UseBackup() Dig
- type TraceResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dig ¶
type Dig struct { LocalAddr string RemoteAddr string BackupRemoteAddr string EDNSSubnet net.IP DialTimeout time.Duration WriteTimeout time.Duration ReadTimeout time.Duration Protocol string Retry int Fallback bool //if Truncated == true; udp -> tcp // contains filtered or unexported fields }
Dig dig
func (*Dig) SetEDNS0ClientSubnet ¶
SetEDNS0ClientSubnet +client
func (*Dig) SetTimeOut ¶
SetTimeOut set read write dial timeout
func (*Dig) TraceForRecord ¶
func (d *Dig) TraceForRecord(domain string, msgType uint16) ([]TraceResponse, error)
Trace dig +trace -t msqType
Click to show internal directories.
Click to hide internal directories.