qry

package
v0.0.0-...-61ad5dc Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PQname

func PQname(labels int, suffix int) string

Generating Preductable query name

func Qtype

func Qtype(qt string) uint16

func RQname

func RQname(labels int) string

Generating Random query name

func Rcode

func Rcode(rc int) string

func Rstring

func Rstring(l int) string

Random string

func SimpleQuery

func SimpleQuery(server string,
	port string,
	qname string,
	qtype string,
	responses chan Response,
	proto string,
	wg *sync.WaitGroup,
	noverify bool)

Send a single DNS query

Types

type Response

type Response struct {
	Rcode  string
	Rtt    time.Duration
	Qname  string
	Qtype  string
	Server string
}

Jump to

Keyboard shortcuts

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