dnsanalyzer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNS

type DNS struct {
	ID           uint16
	QR           bool
	OpCode       string
	AA           bool
	TC           bool
	ResponseCode string
	Questions    []Question
	Answers      []Record
	Authorities  []Record
	Additionals  []Record
}

DNS is ...

func Analyze

func Analyze(c *connection.Connection) (*DNS, error)

Analyze is ...

func (*DNS) Key

func (d *DNS) Key() string

Key is ...

type Question

type Question struct {
	Name  string
	Type  string
	Class string
}

Question is ...

type Record

type Record struct {
	Name  string
	Type  string
	Class string
	TTL   uint32
	Data  string   `json:",omitempty"`
	IP    string   `json:",omitempty"`
	NS    string   `json:",omitempty"`
	CNAME string   `json:",omitempty"`
	PTR   string   `json:",omitempty"`
	TXT   []string `json:",omitempty"`
	SOA   SOA      `json:",omitempty"`
}

Record is ...

type SOA

type SOA struct {
	MName   string
	RName   string
	Serial  uint32
	Refresh uint32
	Retry   uint32
	Expire  uint32
	TTL     uint32
}

SOA is ...

Jump to

Keyboard shortcuts

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