Documentation ¶
Index ¶
- func NewBootstrap(dl proxy.Proxy) id.DNS
- func NewDNSServer(resolver id.DNS) server.DNSServer
- func NewLocal(dl proxy.Proxy) id.DNS
- func NewRemote(dl proxy.Proxy) id.DNS
- type DnsServer
- type Fakedns
- func (f *Fakedns) Conn(ctx context.Context, addr proxy.Address) (net.Conn, error)
- func (f *Fakedns) Dispatch(ctx context.Context, addr proxy.Address) (proxy.Address, error)
- func (f *Fakedns) PacketConn(ctx context.Context, addr proxy.Address) (net.PacketConn, error)
- func (f *Fakedns) Update(c *pc.Setting)
- type Hosts
- func (h *Hosts) Close() error
- func (h *Hosts) Conn(ctx context.Context, addr proxy.Address) (net.Conn, error)
- func (h *Hosts) Dispatch(ctx context.Context, addr proxy.Address) (proxy.Address, error)
- func (h *Hosts) Do(ctx context.Context, addr string, b []byte) ([]byte, error)
- func (h *Hosts) LookupIP(ctx context.Context, domain string) ([]net.IP, error)
- func (h *Hosts) PacketConn(ctx context.Context, addr proxy.Address) (net.PacketConn, error)
- func (h *Hosts) Record(ctx context.Context, domain string, t dnsmessage.Type) ([]net.IP, uint32, error)
- func (h *Hosts) Update(c *config.Setting)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fakedns ¶
type Fakedns struct { // current dns client(fake/upstream) id.DNS // contains filtered or unexported fields }
func (*Fakedns) PacketConn ¶
Click to show internal directories.
Click to hide internal directories.