Documentation ¶
Index ¶
- Variables
- func IsBogon(address string) bool
- type AddressResolver
- type BogonResolver
- type CacheResolver
- type ChainResolver
- type DNSOverHTTPS
- type DNSOverTCP
- type DNSOverUDP
- type DialContextFunc
- type Dialer
- type EmitterResolver
- type EmitterTransport
- type IDNAResolver
- type MiekgDecoder
- type MiekgEncoder
- type Resolver
- type RoundTripper
- type SaverDNSTransport
- type SaverResolver
- type SerialResolver
Constants ¶
This section is empty.
Variables ¶
var ( NewSerialResolver = netxlite.NewSerialResolver NewDNSOverUDP = netxlite.NewDNSOverUDP NewDNSOverTCP = netxlite.NewDNSOverTCP NewDNSOverTLS = netxlite.NewDNSOverTLS NewDNSOverHTTPS = netxlite.NewDNSOverHTTPS NewDNSOverHTTPSWithHostOverride = netxlite.NewDNSOverHTTPSWithHostOverride )
Variables that other packages expect to find here but have been moved into the internal/netxlite/dnsx package.
Functions ¶
Types ¶
type AddressResolver ¶
type AddressResolver = netxlite.AddressResolver
AddressResolver is a resolver that knows how to correctly resolve IP addresses to themselves.
type BogonResolver ¶
type BogonResolver struct {
Resolver
}
BogonResolver is a bogon aware resolver. When a bogon is encountered in a reply, this resolver will return an error.
Deprecation warning ¶
This resolver is deprecated. The right thing to do would be to check for bogons right after a domain name resolution in the nettest.
func (BogonResolver) LookupHost ¶
LookupHost implements Resolver.LookupHost
type CacheResolver ¶
CacheResolver is a resolver that caches successful replies.
func (*CacheResolver) Get ¶
func (r *CacheResolver) Get(domain string) []string
Get gets the currently configured entry for domain, or nil
func (*CacheResolver) LookupHost ¶
LookupHost implements Resolver.LookupHost
func (*CacheResolver) Set ¶
func (r *CacheResolver) Set(domain string, addresses []string)
Set allows to pre-populate the cache
type ChainResolver ¶
ChainResolver is a chain resolver. The primary resolver is used first and, if that fails, we then attempt with the secondary resolver.
func (ChainResolver) Address ¶
func (c ChainResolver) Address() string
Address implements Resolver.Address
func (ChainResolver) LookupHost ¶
LookupHost implements Resolver.LookupHost
func (ChainResolver) Network ¶
func (c ChainResolver) Network() string
Network implements Resolver.Network
type DNSOverHTTPS ¶
type DNSOverHTTPS = netxlite.DNSOverHTTPS
Types that other packages expect to find here but have been moved into the internal/netxlite/dnsx package.
type DNSOverTCP ¶
type DNSOverTCP = netxlite.DNSOverTCP
Types that other packages expect to find here but have been moved into the internal/netxlite/dnsx package.
type DNSOverUDP ¶
type DNSOverUDP = netxlite.DNSOverUDP
Types that other packages expect to find here but have been moved into the internal/netxlite/dnsx package.
type DialContextFunc ¶
type DialContextFunc = netxlite.DialContextFunc
Types that other packages expect to find here but have been moved into the internal/netxlite/dnsx package.
type Dialer ¶
Types that other packages expect to find here but have been moved into the internal/netxlite/dnsx package.
type EmitterResolver ¶
type EmitterResolver struct {
Resolver
}
EmitterResolver is a resolver that emits events
func (EmitterResolver) LookupHost ¶
LookupHost returns the IP addresses of a host
type EmitterTransport ¶
type EmitterTransport struct {
RoundTripper
}
EmitterTransport is a RoundTripper that emits events when they occur.
type IDNAResolver ¶
type IDNAResolver = netxlite.ResolverIDNA
IDNAResolver is to support resolving Internationalized Domain Names. See RFC3492 for more information.
type MiekgDecoder ¶
type MiekgDecoder = netxlite.DNSDecoderMiekg
Types that other packages expect to find here but have been moved into the internal/netxlite/dnsx package.
type MiekgEncoder ¶
type MiekgEncoder = netxlite.DNSEncoderMiekg
Types that other packages expect to find here but have been moved into the internal/netxlite/dnsx package.
type Resolver ¶
type Resolver interface { // LookupHost resolves a hostname to a list of IP addresses. LookupHost(ctx context.Context, hostname string) (addrs []string, err error) // Network returns the network being used by the resolver Network() string // Address returns the address being used by the resolver Address() string }
Resolver is a DNS resolver. The *net.Resolver used by Go implements this interface, but other implementations are possible.
type RoundTripper ¶
type RoundTripper = netxlite.DNSTransport
Types that other packages expect to find here but have been moved into the internal/netxlite/dnsx package.
type SaverDNSTransport ¶
type SaverDNSTransport struct { RoundTripper Saver *trace.Saver }
SaverDNSTransport is a DNS transport that saves events
type SaverResolver ¶
SaverResolver is a resolver that saves events
func (SaverResolver) LookupHost ¶
LookupHost implements Resolver.LookupHost
type SerialResolver ¶
type SerialResolver = netxlite.SerialResolver
Types that other packages expect to find here but have been moved into the internal/netxlite/dnsx package.