Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLookup = errors.New("name lookup failed")
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶
type ResolverConfig ¶
type ResolverConfig struct { // Name is the resolver's name. // The name must be unique among all resolvers. Name string `json:"name"` // AddrPort is the upstream server's address and port. AddrPort netip.AddrPort `json:"addrPort"` // TCPClientName is the name of the TCPClient to use. // Leave empty to disable TCP. TCPClientName string `json:"tcpClientName"` // UDPClientName is the name of the UDPClient to use. // Leave empty to disable UDP. UDPClientName string `json:"udpClientName"` }
ResolverConfig configures a DNS resolver.
Click to show internal directories.
Click to hide internal directories.