localdns

package
v4.6.4+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

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

func New

func New() *Client

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

func (*Client) Close

func (*Client) Close() error

Close implements common.Closable.

func (*Client) LookupIP

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

LookupIP implements Client.

func (*Client) LookupIPv4

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

LookupIPv4 implements IPv4Lookup.

func (*Client) LookupIPv6

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

LookupIPv6 implements IPv6Lookup.

func (*Client) Start

func (*Client) Start() error

Start implements common.Runnable.

func (*Client) Type

func (*Client) Type() interface{}

Type implements common.HasType.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL