hostcmds

package
v0.0.0-...-09cb31e Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DigDnsRecord

type DigDnsRecord struct {
	Name  string
	TTL   int
	Class string
	Type  string
	Data  string
}

type DigRequest

type DigRequest struct {
	Name    string
	Type    string
	Reverse bool
}

func NewDigRequest

func NewDigRequest(req string) (*DigRequest, error)

func (*DigRequest) ToCmdArgs

func (r *DigRequest) ToCmdArgs() []string

type DigResponse

type DigResponse struct {
	Status    string
	QueryTime time.Duration
	Records   []DigDnsRecord
}

func Dig

func Dig(req *DigRequest) (*DigResponse, error)

Jump to

Keyboard shortcuts

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