dnsutil

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDNSServer = "8.8.8.8:53"
)

Variables

View Source
var (
	DNSTimeout = 3
	DNSRetry   = 3
)

Functions

func GetDomainSuffix

func GetDomainSuffix(name string) string

func GetRootDomain

func GetRootDomain(name string) (string, error)

func QueryDNSCnameRecord

func QueryDNSCnameRecord(domain string) *dns.CNAME

func QueryDNSSRVRecord

func QueryDNSSRVRecord(domain string) *dns.SRV

func SetFQDN

func SetFQDN(domain string) string

FQDN: A fully qualified domain name.

func ToDomainWithDot

func ToDomainWithDot(domain string) string

func TrimDomainDot

func TrimDomainDot(domain 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