Documentation ¶
Index ¶
- type Client
- func (*Client) Close() error
- func (*Client) LoadDNSServers() ([]string, error)
- func (*Client) LookupIP(host string) ([]net.IP, error)
- func (c *Client) LookupIPv4(host string) ([]net.IP, error)
- func (c *Client) LookupIPv6(host string) ([]net.IP, error)
- func (*Client) Start() error
- func (*Client) Type() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct{}
Client is an implementation of dns.Client, which queries localhost for DNS.
func (*Client) LoadDNSServers ¶
func (*Client) LookupIPv4 ¶
LookupIPv4 implements IPv4Lookup.
func (*Client) LookupIPv6 ¶
LookupIPv6 implements IPv6Lookup.
Click to show internal directories.
Click to hide internal directories.