localdns

package
v4.42.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: MIT Imports: 3 Imported by: 2

Documentation

Index

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 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 (*Client) LookupIP(host string) ([]net.IP, error)

LookupIP implements Client.

func (*Client) LookupIPv4 added in v4.37.0

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

LookupIPv4 implements IPv4Lookup.

func (*Client) LookupIPv6 added in v4.37.0

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