gresolver

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedLookup

type CachedLookup struct {
	Name    string
	Expires time.Time
	Address string
}

type Resolver

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

func New

func New() *Resolver

func (*Resolver) Dial

func (r *Resolver) Dial(network, address string) (net.Conn, error)

Dial connects to google dns using Lookup and does not require a dns server

func (*Resolver) Lookup

func (r *Resolver) Lookup(address string) (addr string, err error)

Lookup is used by Dial to perform a dns lookup without requiring a dns server

Jump to

Keyboard shortcuts

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