dnschecks

package module
v0.0.0-...-c7c281c Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 5 Imported by: 0

README

Alpha amateur hobby software

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Answer

type Answer struct {
	DSRecordCount     int             `json:"dsrecordcount,omitempty"`
	DNSKEYRecordCount int             `json:"dnskeyrecordcount,omitempty"`
	DSRecords         []*DomainDS     `json:"dsrecords,omitempty"`
	DNSKEYRecords     []*DomainDNSKEY `json:"dnskeyrecords,omitempty"`
	CalculatedDS      []*DomainDS     `json:"calculatedds,omitempty"`
	Matching          Matching        `json:"matching,omitempty"`
}

Answer struct the answer of the question.

type Chaos

type Chaos struct {
	Nameserver   string `json:"nameserver,omitempty"`
	BindHostname string `json:"hostname,omitempty"`
	BindVersion  string `json:"version,omitempty"`
}

Chaos struct for information

type DNSSEC

type DNSSEC struct {
	Answer Answer `json:"answer"`
	DNSSEC bool   `json:"dnssec"`
	NSEC   NSEC   `json:"nsec"`
}

registryNameserver struct

type Data

type Data struct {
	Registry       *Registry  `json:"registry,omitempty"`
	Nameservers    []string   `json:"nameservers,omitempty"`
	NameserversTLD []string   `json:"nameservers_tld,omitempty"`
	SOA            *SOA       `json:"soa,omitempty"`
	Serials        []*Serial  `json:"serials,omitempty"`
	Chaos          []*Chaos   `json:"chaos,omitempty"`
	DNSSEC         *DNSSEC    `json:"dnssec,omitempty"`
	Error          bool       `json:"error,omitempty"`
	ErrorMessage   string     `json:"error_message,omitempty"`
	Findings       []*Finding `json:"findings,omitempty"`
}

Data struct with main data

func Run

func Run(domain string, nameserver string) (*Data, error)

Run function for running checks

type DomainDNSKEY

type DomainDNSKEY struct {
	Algorithm    uint8     `json:"algorithm,omitempty"`
	Flags        uint16    `json:"flags,omitempty"`
	Protocol     uint8     `json:"protocol,omitempty"`
	PublicKey    string    `json:"publickey,omitempty"`
	CalculatedDS *DomainDS `json:"calculatedds,omitempty"`
}

DomainDNSKEY struct

type DomainDS

type DomainDS struct {
	Algorithm  uint8  `json:"algorithm,omitempty"`
	Digest     string `json:"digest,omitempty"`
	DigestType uint8  `json:"digesttype,omitempty"`
	KeyTag     uint16 `json:"keytag,omitempty"`
}

DomainDS struct

type Finding

type Finding struct {
	ID    string `json:"id,omitempty"`
	Text  string `json:"text,omitempty"`
	Score string `json:"score,omitempty"`
}

Finding struct with main data

type Matching

type Matching struct {
	DS     []*DomainDS     `json:"ds,omitempty"`
	DNSKEY []*DomainDNSKEY `json:"dnskey,omitempty"`
}

Matching struct for information

type NSEC

type NSEC struct {
	Type       string          `json:"type,omitempty"`
	NSEC       *dns.NSEC       `json:"nsec,omitempty"`
	NSEC3      *dns.NSEC3      `json:"nsec3,omitempty"`
	NSEC3PARAM *dns.NSEC3PARAM `json:"nsec3param,omitempty"`
}

NSEC struct for NSEC type

type Registry

type Registry struct {
	TLD         string   `json:"tld,omitempty"`
	MemberICANN bool     `json:"member_icann,omitempty"`
	Nameservers []string `json:"nameservers,omitempty"`
}

Registry struct for information

type SOA

type SOA struct {
	Ns      string `json:"ns,omitempty"`
	Mbox    string `json:"mbox,omitempty"`
	Serial  uint32 `json:"serial,omitempty"`
	Refresh uint32 `json:"refresh,omitempty"`
	Retry   uint32 `json:"retry,omitempty"`
	Expire  uint32 `json:"expire,omitempty"`
	Minttl  uint32 `json:"minttl,omitempty"`
}

SOA struct for SOA information aquired from the nameserver.

type Serial

type Serial struct {
	Nameserver string `json:"nameserver,omitempty"`
	Serial     uint32 `json:"serial,omitempty"`
}

Serial struct for information

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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