dnsprobe

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record struct {
	Host        string   `json:"host"`
	CNAMEs      []string `json:"cnames,omitempty"`
	Addresses   []string `json:"addresses,omitempty"`
	Nameservers []string `json:"nameservers,omitempty"`
	Dangling    bool     `json:"dangling"`
	Error       string   `json:"error,omitempty"`
}

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func New

func New(servers []string, timeout time.Duration) *Resolver

func (*Resolver) Lookup

func (r *Resolver) Lookup(ctx context.Context, host string) Record

Jump to

Keyboard shortcuts

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