constants

package
v0.0.0-...-972eec0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Maximum size of a label, excluding dot.
	MAX_SIZE_LABEL int = 63
	// Maximum size of a full dns name.
	MAX_SIZE_NAME int = 255
	// Maximum value of the TTL field.
	MAX_VALUE_TTL uint32 = 0xFFFFFFFF
	// Maximum size of an UDP packet.
	MAX_SIZE_UDP int = 512
	// Fixed header of a DNS packet.
	FIX_SIZE_HEADER int = 12
)
View Source
const (
	TYPE_NIL = iota
	TYPE_A
	TYPE_NS
	TYPE_MD
	TYPE_MF
	TYPE_CNAME
	TYPE_SOA
	TYPE_MB
	TYPE_MG
	TYPE_MR
	TYPE_NULL
	TYPE_WKS
	TYPE_PTR
	TYPE_HINFO
	TYPE_MINFO
	TYPE_MX
	TYPE_TXT

	TYPE_AAAA = 28

	// EDNS
	TYPE_OPT = 41
	// DNSSEC
	TYPE_DS          = 43
	TYPE_RRSIG       = 46
	TYPE_DNSKEY      = 48
	TYPE_NSEC3       = 50
	TYPE_NSEC3_PARAM = 51

	QTYPE_AXFR  = 252
	QTYPE_MAILB = 253
	QTYPE_MAILA = 254
	QTYPE_ALL   = 255
)

types as defined by RFC 1035 section 3.2.2

View Source
const (
	CLASS_NIL = iota
	CLASS_IN
	CLASS_CS
	CLASS_CH
	CLASS_HS
	QCLASS_ANY = 255
)

classes as defined by RFC 1035 Section 3.2.4

View Source
const (
	OP_QUERY  = 0
	OP_IQUERY = 1
	OP_STATUS = 2
)
View Source
const (
	RC_NO_ERR = iota
	RC_FORM_ERR
	RC_SERV_FAIL
	RC_NAME_ERR
	RC_NOT_IMPL
	RC_REFUSED

	// EDNS Status codes
	RC_EDNS_BADVERS = 16
)
View Source
const (
	EDE_OTHER_ERROR = iota
	EDE_UNSUPPORTED_DNSKEY_ALGO
	EDE_UNSUPPORTED_DS_TYPE
	EDE_STALE_ANSWER
	EDE_ROGED_ANSWER
	EDE_DNSSEC_INDETERMINATE
	EDE_DNSSEC_BOGUS
	EDE_SIGNATURE_EXPIRED
	EDE_SIGNATURE_NOT_YET_VALID
	EDE_DNSKEY_MISSING
	EDE_RRSIG_MISSING
	EDE_NO_ZONE_KEY_BIT_SET
	EDE_NSEC_MISSING
	EDE_CACHE_ERROR
	EDE_NOT_READY
	EDE_BLOCKED
	EDE_CENSORED
	EDE_FILTERED
	EDE_PROHIBITED
	EDE_STALE_NXDOM
	EDE_NOT_AUTHORATIVE
	EDE_NOT_SUPPORTED
	EDE_NO_REACHABLE_AUTHORITY
	EDE_NETWORK_ERROR
	EDE_INVALID_DATA
)
View Source
const (
	EDE_EDNS_OPTION = 15
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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