core: v2ray.com/core/features/dns/localdns Index | Files

package localdns

import "v2ray.com/core/features/dns/localdns"

Index

Package Files

client.go

type Client Uses

type Client struct{}

Client is an implementation of dns.Client, which queries localhost for DNS.

func New Uses

func New() *Client

New create a new dns.Client that queries localhost for DNS.

func (*Client) Close Uses

func (*Client) Close() error

Close implements common.Closable.

func (*Client) LookupIP Uses

func (*Client) LookupIP(host string) ([]net.IP, error)

LookupIP implements Client.

func (*Client) LookupIPv4 Uses

func (c *Client) LookupIPv4(host string) ([]net.IP, error)

LookupIPv4 implements IPv4Lookup.

func (*Client) LookupIPv6 Uses

func (c *Client) LookupIPv6(host string) ([]net.IP, error)

LookupIPv6 implements IPv6Lookup.

func (*Client) Start Uses

func (*Client) Start() error

Start implements common.Runnable.

func (*Client) Type Uses

func (*Client) Type() interface{}

Type implements common.HasType.

Package localdns imports 2 packages (graph) and is imported by 4 packages. Updated 2019-03-31. Refresh now. Tools for package owners.