dns

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2019 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultDNSServer added in v0.4.0

func GetDefaultDNSServer() string

func HTTPPing added in v0.4.6

func HTTPPing(viaHost, domain string, port Port, timeout time.Duration) (err error)

HTTPPing try connect to a http(s) server with domain though the http addr

func NewClientHelloSNIMsg added in v0.4.6

func NewClientHelloSNIMsg(domain string) []byte

func StartDNS

func StartDNS(dnsServer, listenIP string)

Types

type Port added in v0.4.6

type Port uint16

Port ==========================

const (
	Http Port = iota
	Https
)

func (Port) JoinAddr added in v0.4.6

func (p Port) JoinAddr(addr string) string

Jump to

Keyboard shortcuts

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