Documentation ¶
Index ¶
- type DnsServer
- type Entry
- 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, opts ...func(*netapi.LookupIPOption)) ([]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, opts ...func(*netapi.LookupIPOption)) ([]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)
- type Resolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DnsServer ¶
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)
type Hosts ¶
type Hosts struct {
// contains filtered or unexported fields
}
func (*Hosts) PacketConn ¶
func (*Hosts) Raw ¶
func (h *Hosts) Raw(ctx context.Context, req dnsmessage.Question) (dnsmessage.Message, error)
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶
Click to show internal directories.
Click to hide internal directories.