Documentation
¶
Index ¶
- func NewBootstrap(dl netapi.Proxy) netapi.Resolver
- func NewLocal(dl netapi.Proxy) netapi.Resolver
- func NewRemote(dl netapi.Proxy) netapi.Resolver
- type DnsServer
- type Fakedns
- func (f *Fakedns) Close() error
- func (f *Fakedns) Conn(ctx context.Context, addr netapi.Address) (net.Conn, error)
- func (f *Fakedns) Dispatch(ctx context.Context, addr netapi.Address) (netapi.Address, error)
- func (f *Fakedns) LookupIP(ctx context.Context, domain string) ([]net.IP, error)
- func (f *Fakedns) PacketConn(ctx context.Context, addr netapi.Address) (net.PacketConn, error)
- func (f *Fakedns) Raw(ctx context.Context, req dnsmessage.Question) (dnsmessage.Message, error)
- func (f *Fakedns) Update(c *pc.Setting)
- type Hosts
- func (h *Hosts) Close() error
- func (h *Hosts) Conn(ctx context.Context, addr netapi.Address) (net.Conn, error)
- func (h *Hosts) Dispatch(ctx context.Context, addr netapi.Address) (netapi.Address, error)
- func (h *Hosts) LookupIP(ctx context.Context, domain string) ([]net.IP, error)
- func (h *Hosts) PacketConn(ctx context.Context, addr netapi.Address) (net.PacketConn, error)
- func (h *Hosts) Raw(ctx context.Context, req dnsmessage.Question) (dnsmessage.Message, error)
- func (h *Hosts) Update(c *config.Setting)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DnsServer ¶
type DnsServer struct {
netapi.DNSHandler
// contains filtered or unexported fields
}
func NewDNSServer ¶
type Fakedns ¶
type Fakedns struct {
// contains filtered or unexported fields
}
func NewFakeDNS ¶
func (*Fakedns) PacketConn ¶
func (*Fakedns) Raw ¶
func (f *Fakedns) Raw(ctx context.Context, req dnsmessage.Question) (dnsmessage.Message, error)
Click to show internal directories.
Click to hide internal directories.