pkicaa

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

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 6 Imported by: 0

README

CAA

CAA check library in Golang. Using https://github.com/miekg/dns for the DNS lookups.

Notes

Initial CAA checker commit. Many things to do...

DNS ResponseCodes

Here some DNS response codes, maybe I have to map them later.

0 = NOERR, no error
1 = FORMERR, format error (unable to understand the query)
2 = SERVFAIL, name server problem
3 = NXDOMAIN, domain name does not exist
4 = NOTIMPL, not implemented
5 = REFUSED (e.g., refused zone transfer requests)

CA information

Some CA's seem to check different then others. Not all resolving nameservers are giving the same answers.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CAAdata

type CAAdata struct {
	Domain       string     `json:"domain"`
	DNSSEC       bool       `json:"dnssec"`
	Blocking     bool       `json:"blocking,omitempty"`
	Found        bool       `json:"found,omitempty"`
	Issue        []string   `json:"issue,omitempty"`
	IssueWild    []string   `json:"issuewild,omitempty"`
	Hosts        []*host    `json:"host,omitempty"`
	Controls     []*control `json:"control,omitempty"`
	Error        bool       `json:"error,omitempty"`
	ErrorMessage string     `json:"errormessage,omitempty"`
}

CAAdata struct is the main struct

func Get

func Get(hostname string, nameserver string, full bool) *CAAdata

Get function, main function of this module.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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