dns

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadResolveConfig

func ReadResolveConfig(configFile string) ([]string, error)

ReadResolveConfig retrieve resolvers from os

Types

type Client

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

Client dns instance

func New

func New(baseResolvers []string, maxRetries int) (*Client, error)

New creates a new dns client

func (*Client) Resolve

func (c *Client) Resolve(host string) (Result, error)

Resolve ips for a record

type Result

type Result struct {
	IPs []string
	TTL int
}

Result containing ip and time to live

Jump to

Keyboard shortcuts

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