dnsres

package
v0.0.0-...-7df0ded Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HttpTimeout  = 10
	CacheTimeout = 172800
)

Timeout and URI templates for DNS resolutions external services

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolution

type Resolution struct {
	Source       string
	LastResolved time.Time
	IpOrDomain   string
}

Resolution structure

type Resolutions

type Resolutions []Resolution

Resolutions structure sorted by LastResolved

func GetDnsRes

func GetDnsRes(ipAddressOrDomain string) Resolutions

GetDnsRes returns the DNS resolutions of an ip address or domain

func (Resolutions) Len

func (slice Resolutions) Len() int

func (Resolutions) Less

func (slice Resolutions) Less(i, j int) bool

func (Resolutions) Swap

func (slice Resolutions) Swap(i, j int)

Jump to

Keyboard shortcuts

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