localdns

package
v0.0.0-...-3a6f846 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MPL-2.0 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{}

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, option dns.IPOption) ([]net.IP, error)

LookupIP implements Client.

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