dnsutil

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultDNSClient = dns.Client{
		Timeout:      5 * time.Second,
		DialTimeout:  5 * time.Second,
		ReadTimeout:  5 * time.Second,
		WriteTimeout: 5 * time.Second,
	}
	DefaultDNSConn   = dns.Dial
	DefaultDNSServer = []string{
		"223.5.5.5",
		"119.29.29.29",
		"180.76.76.76",
		"114.114.114.114",
		"1.1.1.1",
	}
)

Functions

func QueryAXFR

func QueryAXFR(target string, timeout time.Duration, nameServers []string) []string

func QueryAXFREx

func QueryAXFREx(ctx context.Context, target string, servers []string) ([]string, error)

func QueryIP

func QueryIP(target string, timeout time.Duration, dnsServers []string) string

func QueryIPAll

func QueryIPAll(target string, timeout time.Duration, dnsServers []string) []string

func QueryNS

func QueryNS(target string, timeout time.Duration, nameServers []string) []string

func QueryNSEx

func QueryNSEx(client *dns.Client, ctx context.Context, target string, servers []string) ([]string, error)

func QueryTxTEx

func QueryTxTEx(client *dns.Client, ctx context.Context, target string, servers []string) ([]string, error)

func QueryTxt

func QueryTxt(target string, timeout time.Duration, nameServers []string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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