localdns

package
v0.0.0-...-694aa1c Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MPL-2.0 Imports: 2 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