dns

package module
v0.0.0-...-1643719 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonFields

type CommonFields struct {
	Err      string        `js:"err"`
	Duration time.Duration `js:"duration"`
}

func (*CommonFields) SetCommonFields

func (c *CommonFields) SetCommonFields(duration time.Duration, err error)

type DNS

type DNS struct{}

func (*DNS) LookupAddr

func (r *DNS) LookupAddr(addr string) *LookupAddrResponse

func (*DNS) LookupCNAME

func (r *DNS) LookupCNAME(host string) *LookupCNAMEResponse

func (*DNS) LookupHost

func (*DNS) LookupHost(host string) *LookupHostResponse

func (*DNS) LookupIP

func (r *DNS) LookupIP(network string, host string) *LookupIPResponse

func (*DNS) LookupIPAddr

func (r *DNS) LookupIPAddr(host string) *LookupIPAddrResponse

func (*DNS) LookupMX

func (r *DNS) LookupMX(name string) *LookupMXResponse

func (*DNS) LookupNS

func (r *DNS) LookupNS(name string) *LookupNSResponse

func (*DNS) LookupNetIP

func (r *DNS) LookupNetIP(network string, host string) *LookupNetIPResponse

func (*DNS) LookupPort

func (r *DNS) LookupPort(network string, service string) *LookupPortResponse

func (*DNS) LookupSRV

func (r *DNS) LookupSRV(service string, proto string, name string) *LookupSRVResponse

func (*DNS) LookupTXT

func (r *DNS) LookupTXT(name string) *LookupTXTResponse

type LookupAddrResponse

type LookupAddrResponse struct {
	CommonFields
	Names []string `js:"names"`
}

type LookupCNAMEResponse

type LookupCNAMEResponse struct {
	CommonFields
	Cname string `js:"cname"`
}

type LookupHostResponse

type LookupHostResponse struct {
	CommonFields
	Addrs []string `js:"addrs"`
}

type LookupIPAddrResponse

type LookupIPAddrResponse struct {
	CommonFields
	Ips []string `js:"ips"`
}

type LookupIPResponse

type LookupIPResponse struct {
	CommonFields
	Ips []string `js:"ips"`
}

type LookupMXResponse

type LookupMXResponse struct {
	CommonFields
	Records []*net.MX `js:"records"`
}

type LookupNSResponse

type LookupNSResponse struct {
	CommonFields
	Records []*net.NS `js:"records"`
}

type LookupNetIPResponse

type LookupNetIPResponse struct {
	CommonFields
	Ips []string `js:"ips"`
}

type LookupPortResponse

type LookupPortResponse struct {
	CommonFields
	Port int `js:"port"`
}

type LookupSRVResponse

type LookupSRVResponse struct {
	CommonFields
	Cname   string     `js:"cname"`
	Records []*net.SRV `js:"records"`
}

type LookupTXTResponse

type LookupTXTResponse struct {
	CommonFields
	Records []string `js:"records"`
}

Jump to

Keyboard shortcuts

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