DNS Constant Enumerations

DNS_RRClass

DNS CLASSes [*]

DNS_RRType

Resource Record (RR) TYPEs [†]

DNS_Opcode

DNS OpCodes [‡]

DNS_RCode

DNS RCODEs [§]

DNS_Option

DNS EDNS0 Option Codes (OPT) []

DNS CLASSes

Generated from pcapkit.vendor.dns.rr_class.RRClass.

class pcapkit.const.dns.rr_class.RRClass(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[RRClass] DNS CLASSes

Reserved_0 = 0

Reserved [RFC 6895]

IN = 1

Internet (IN) [RFC 1035]

Unassigned_2 = 2

Unassigned

CH = 3

Chaos (CH) [D. Moon, “Chaosnet”, A.I. Memo 628, Massachusetts Institute of Technology Artificial Intelligence Laboratory, June 1981.]

HS = 4

Hesiod (HS) [Dyer, S., and F. Hsu, “Hesiod”, Project Athena Technical Plan - Name Service, April 1987.]

NONE = 254

QCLASS NONE [RFC 2136]

ANY = 255

QCLASS * (ANY) [RFC 1035]

Reserved_65535 = 65535

Reserved [RFC 6895]

classmethod _validate_value(value)[source]

Reject value unless it passes the range check _missing_() makes.

Overrides _validate_value() with that check and the message it raises, so register() refuses exactly the values get() refuses, in the same words (#1816).

Parameters:

value (Any) – Value about to be looked up or minted.

Raises:

EnumValueError – If value fails that check. A ValueError, so an except ValueError caller is unaffected.

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

RRClass

Resource Record (RR) TYPEs

Generated from pcapkit.vendor.dns.rr_type.RRType.

class pcapkit.const.dns.rr_type.RRType(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[RRType] DNS Resource Record (RR) TYPEs

Reserved_0 = 0

Reserved [RFC 6895]

A = 1

A – a host address [RFC 1035]

NS = 2

NS – an authoritative name server [RFC 1035]

MD = 3

MD – a mail destination (OBSOLETE - use MX) [RFC 1035]

MF = 4

MF – a mail forwarder (OBSOLETE - use MX) [RFC 1035]

CNAME = 5

CNAME – the canonical name for an alias [RFC 1035]

SOA = 6

SOA – marks the start of a zone of authority [RFC 1035]

MB = 7

MB – a mailbox domain name (EXPERIMENTAL) [RFC 1035]

MG = 8

MG – a mail group member (EXPERIMENTAL) [RFC 1035]

MR = 9

MR – a mail rename domain name (EXPERIMENTAL) [RFC 1035]

NULL = 10

NULL – a null RR (EXPERIMENTAL) [RFC 1035]

WKS = 11

WKS – a well known service description [RFC 1035]

PTR = 12

PTR – a domain name pointer [RFC 1035]

HINFO = 13

HINFO – host information [RFC 1035]

MINFO = 14

MINFO – mailbox or mail list information [RFC 1035]

MX = 15

MX – mail exchange [RFC 1035]

TXT = 16

TXT – text strings [RFC 1035]

RP = 17

RP – for Responsible Person [RFC 1183]

AFSDB = 18

AFSDB – for AFS Data Base location [RFC 1183][RFC 5864]

X25 = 19

X25 – for X.25 PSDN address [RFC 1183]

ISDN = 20

ISDN – for ISDN address [RFC 1183]

RT = 21

RT – for Route Through [RFC 1183]

NSAP = 22

NSAP – for NSAP address, NSAP style A record (DEPRECATED) [RFC 1706][Moving TPC.INT and NSAP.INT infrastructure domains to historic]

NSAP_PTR = 23

NSAP-PTR – for domain name pointer, NSAP style (DEPRECATED) [RFC 1706][Moving TPC.INT and NSAP.INT infrastructure domains to historic]

SIG = 24

SIG – for security signature [RFC 2536][RFC 2931][RFC 3110][RFC 4034]

KEY = 25

KEY – for security key [RFC 2536][RFC 2539][RFC 3110][RFC 4034]

PX = 26

PX – X.400 mail mapping information [RFC 2163]

GPOS = 27

GPOS – Geographical Position [RFC 1712]

AAAA = 28

AAAA – IP6 Address [RFC 3596]

LOC = 29

LOC – Location Information [RFC 1876]

NXT = 30

NXT – Next Domain (OBSOLETE) [RFC 2535][RFC 3755]

EID = 31

EID – Endpoint Identifier [Michael Patton][http://ana-3.lcs.mit.edu/~jnc/nimrod/dns.txt]

NIMLOC = 32

NIMLOC – Nimrod Locator [1][Michael Patton][http://ana-3.lcs.mit.edu/~jnc/nimrod/dns.txt]

SRV = 33

SRV – Server Selection [1][RFC 2782]

ATMA = 34

ATMA – ATM Address [ ATM Forum Technical Committee, “ATM Name System, V2.0”, Doc ID: AF-DANS-0152.000, July 2000. Available from and held in escrow by IANA.]

NAPTR = 35

NAPTR – Naming Authority Pointer [RFC 3403]

KX = 36

KX – Key Exchanger [RFC 2230]

CERT = 37

CERT – CERT [RFC 4398]

A6 = 38

A6 – A6 (OBSOLETE - use AAAA) [RFC 2874][RFC 3226][RFC 6563]

DNAME = 39

DNAME – DNAME [RFC 6672]

SINK = 40

SINK – SINK [Donald E Eastlake][draft-eastlake-kitchen-sink-02]

OPT = 41

OPT – OPT [RFC 3225][RFC 6891]

APL = 42

APL – APL [RFC 3123]

DS = 43

DS – Delegation Signer [RFC 4034]

SSHFP = 44

SSHFP – SSH Key Fingerprint [RFC 4255]

IPSECKEY = 45

IPSECKEY – IPSECKEY [RFC 4025]

RRSIG = 46

RRSIG – RRSIG [RFC 4034]

NSEC = 47

NSEC – NSEC [RFC 4034][RFC 9077]

DNSKEY = 48

DNSKEY – DNSKEY [RFC 4034]

DHCID = 49

DHCID – DHCID [RFC 4701]

NSEC3 = 50

NSEC3 – NSEC3 [RFC 5155][RFC 9077]

NSEC3PARAM = 51

NSEC3PARAM – NSEC3PARAM [RFC 5155]

TLSA = 52

TLSA – TLSA [RFC 6698]

SMIMEA = 53

SMIMEA – S/MIME cert association [RFC 8162]

DELEGPARAM = 54

DELEGPARAM – Extensible Delegation Indirection (TEMPORARY - registered 2026-10-16, expires 2027-10-16) [draft-ietf-deleg-12]

HIP = 55

HIP – Host Identity Protocol [RFC 8005]

NINFO = 56

NINFO – NINFO [Jim Reid]

RKEY = 57

RKEY – RKEY [Jim Reid]

TALINK – Trust Anchor LINK [Wouter Wijngaards]

CDS = 59

CDS – Child DS [RFC 7344]

CDNSKEY = 60

CDNSKEY – DNSKEY(s) the Child wants reflected in DS [RFC 7344]

OPENPGPKEY = 61

OPENPGPKEY – OpenPGP Key [RFC 7929]

CSYNC = 62

CSYNC – Child-To-Parent Synchronization [RFC 7477]

ZONEMD = 63

ZONEMD – Message Digest Over Zone Data [RFC 8976]

SVCB = 64

SVCB – General-purpose service binding [RFC 9460]

HTTPS = 65

HTTPS – SVCB-compatible type for use with HTTP [RFC 9460]

DSYNC = 66

DSYNC – Endpoint discovery for delegation synchronization [RFC 9859]

HHIT = 67

HHIT – Hierarchical Host Identity Tag [RFC 9886]

BRID = 68

BRID – UAS Broadcast Remote Identification [RFC 9886]

UNECE = 69

UNECE – Value coded per a UNECE Recommendation [draft-woodcock-faltstrom-external-registry-rrtypes-00]

ISO = 70

ISO – Value coded per an ISO standard [draft-woodcock-faltstrom-external-registry-rrtypes-00]

SPF = 99

SPF [RFC 7208]

UINFO = 100

UINFO [IANA-Reserved]

UID = 101

UID [IANA-Reserved]

GID = 102

GID [IANA-Reserved]

UNSPEC = 103

UNSPEC [IANA-Reserved]

NID = 104

NID [RFC 6742]

L32 = 105

L32 [RFC 6742]

L64 = 106

L64 [RFC 6742]

LP = 107

LP [RFC 6742]

EUI48 = 108

EUI48 – an EUI-48 address [RFC 7043]

EUI64 = 109

EUI64 – an EUI-64 address [RFC 7043]

NXNAME = 128

NXNAME – NXDOMAIN indicator for Compact Denial of Existence [RFC 9824]

TKEY = 249

TKEY – Transaction Key [RFC 2930]

TSIG = 250

TSIG – Transaction Signature [RFC 8945]

IXFR = 251

IXFR – incremental transfer [RFC 1995]

AXFR = 252

AXFR – transfer of an entire zone [RFC 1035][RFC 5936]

MAILB = 253

MAILB – mailbox-related RRs (MB, MG or MR) [RFC 1035]

MAILA = 254

MAILA – mail agent RRs (OBSOLETE - see MX) [RFC 1035]

ANY = 255

* – A request for some or all records the server has available [RFC 1035][RFC 6895][RFC 8482]

URI = 256

URI – URI [RFC 7553]

CAA = 257

CAA – Certification Authority Restriction [RFC 8659]

AVC = 258

AVC – Application Visibility and Control [Wolfgang Riedel]

DOA = 259

DOA – Digital Object Architecture [draft-durand-doa-over-dns-02]

AMTRELAY = 260

AMTRELAY – Automatic Multicast Tunneling Relay [RFC 8777]

RESINFO = 261

RESINFO – Resolver Information as Key/Value Pairs [RFC 9606]

WALLET = 262

WALLET – Public wallet address [Paul Hoffman]

CLA = 263

CLA – BP Convergence Layer Adapter [draft-johnson-dns-ipn-cla-07]

IPN = 264

IPN – BP Node Number [draft-johnson-dns-ipn-cla-07]

TA = 32768

TA – DNSSEC Trust Authorities [Sam Weiler][ Deploying DNSSEC Without a Signed Root. Technical Report 1999-19, Information Networking Institute, Carnegie Mellon University, April 2004.]

DLV = 32769

DLV – DNSSEC Lookaside Validation (OBSOLETE) [RFC 8749][RFC 4431]

DELEG = 61440

DELEG – Extensible Delegation (TEMPORARY - registered 2026-10-16, expires 2027-10-16) [draft-ietf-deleg-12]

Reserved_65535 = 65535

Reserved

classmethod _validate_value(value)[source]

Reject value unless it passes the range check _missing_() makes.

Overrides _validate_value() with that check and the message it raises, so register() refuses exactly the values get() refuses, in the same words (#1816).

Parameters:

value (Any) – Value about to be looked up or minted.

Raises:

EnumValueError – If value fails that check. A ValueError, so an except ValueError caller is unaffected.

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

RRType

DNS OpCodes

Generated from pcapkit.vendor.dns.opcode.Opcode.

class pcapkit.const.dns.opcode.Opcode(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[Opcode] DNS OpCodes

Query = 0

Query [RFC 1035]

IQuery = 1

IQuery (Inverse Query, OBSOLETE) [RFC 3425]

Status = 2

Status [RFC 1035]

Unassigned_3 = 3

Unassigned

Notify = 4

Notify [RFC 1996]

Update = 5

Update [RFC 2136]

DSO = 6

DNS Stateful Operations (DSO) [RFC 8490]

classmethod _validate_value(value)[source]

Reject value unless it passes the range check _missing_() makes.

Overrides _validate_value() with that check and the message it raises, so register() refuses exactly the values get() refuses, in the same words (#1816).

Parameters:

value (Any) – Value about to be looked up or minted.

Raises:

EnumValueError – If value fails that check. A ValueError, so an except ValueError caller is unaffected.

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

Opcode

DNS RCODEs

Generated from pcapkit.vendor.dns.rcode.RCode.

class pcapkit.const.dns.rcode.RCode(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[RCode] DNS RCODEs

NoError = 0

NoError – No Error [RFC 1035]

FormErr = 1

FormErr – Format Error [RFC 1035]

ServFail = 2

ServFail – Server Failure [RFC 1035]

NXDomain = 3

NXDomain – Non-Existent Domain [RFC 1035]

NotImp = 4

NotImp – Not Implemented [RFC 1035]

Refused = 5

Refused – Query Refused [RFC 1035]

YXDomain = 6

YXDomain – Name Exists when it should not [RFC 2136][RFC 6672]

YXRRSet = 7

YXRRSet – RR Set Exists when it should not [RFC 2136]

NXRRSet = 8

NXRRSet – RR Set that should exist does not [RFC 2136]

NotAuth = 9

NotAuth – Server Not Authoritative for zone [RFC 2136]; Not Authorized [RFC 8945]

NotZone = 10

NotZone – Name not contained in zone [RFC 2136]

DSOTYPENI = 11

DSOTYPENI – DSO-TYPE Not Implemented [RFC 8490]

BADVERS = 16

BADVERS – Bad OPT Version [RFC 6891]

BADSIG = 16

BADSIG – TSIG Signature Failure [RFC 8945]

BADKEY = 17

BADKEY – Key not recognized [RFC 8945]

BADTIME = 18

BADTIME – Signature out of time window [RFC 8945]

BADMODE = 19

BADMODE – Bad TKEY Mode [RFC 2930]

BADNAME = 20

BADNAME – Duplicate key name [RFC 2930]

BADALG = 21

BADALG – Algorithm not supported [RFC 2930]

BADTRUNC = 22

BADTRUNC – Bad Truncation [RFC 8945]

BADCOOKIE = 23

BADCOOKIE – Bad/missing Server Cookie [RFC 7873]

Reserved_65535 = 65535

Reserved, can be allocated by Standards Action – [RFC 6895]

classmethod _validate_value(value)[source]

Reject value unless it passes the range check _missing_() makes.

Overrides _validate_value() with that check and the message it raises, so register() refuses exactly the values get() refuses, in the same words (#1816).

Parameters:

value (Any) – Value about to be looked up or minted.

Raises:

EnumValueError – If value fails that check. A ValueError, so an except ValueError caller is unaffected.

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

RCode

DNS EDNS0 Option Codes (OPT)

Generated from pcapkit.vendor.dns.option.Option.

class pcapkit.const.dns.option.Option(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[Option] DNS EDNS0 Option Codes (OPT)

Reserved_0 = 0

Reserved [RFC 6891]

LLQ = 1

LLQ [RFC 8764]

Update_Lease = 2

Update Lease [RFC 9664]

NSID = 3

NSID [RFC 5001]

Reserved_4 = 4

Reserved [draft-cheshire-edns0-owner-option-00]

DAU = 5

DAU [RFC 6975]

DHU = 6

DHU [RFC 6975]

N3U = 7

N3U [RFC 6975]

edns_client_subnet = 8

edns-client-subnet [RFC 7871]

EDNS_EXPIRE = 9

EDNS EXPIRE [RFC 7314]

COOKIE = 10

COOKIE [RFC 7873]

edns_tcp_keepalive = 11

edns-tcp-keepalive [RFC 7828]

Padding = 12

Padding [RFC 7830]

CHAIN = 13

CHAIN [RFC 7901]

edns_key_tag = 14

edns-key-tag [RFC 8145]

Extended_DNS_Error = 15

Extended DNS Error [RFC 8914]

EDNS_Client_Tag = 16

EDNS-Client-Tag [draft-bellis-dnsop-edns-tags-01]

EDNS_Server_Tag = 17

EDNS-Server-Tag [draft-bellis-dnsop-edns-tags-01]

Report_Channel = 18

Report-Channel [RFC 9567]

ZONEVERSION = 19

ZONEVERSION [RFC 9660]

MQTYPE_Query = 20

MQTYPE-Query [RFC 10029]

MQTYPE_Response = 21

MQTYPE-Response [RFC 10029]

EDE_EXTRA_TEXT_LANGUAGE = 22

EDE-EXTRA-TEXT-LANGUAGE [draft-muks-dns-filtering-05]

FILTERING_CONTACT = 23

FILTERING-CONTACT [draft-muks-dns-filtering-05]

FILTERING_ORGANIZATION = 24

FILTERING-ORGANIZATION [draft-muks-dns-filtering-05]

FILTERING_DB = 25

FILTERING-DB [draft-muks-dns-filtering-05]

Structured_DNS_Error = 26

Structured DNS Error [RFC-ietf-dnsop-structured-dns-error-27]

Umbrella_Ident = 20292

Umbrella Ident [https://developer.cisco.com/docs/cloud-security/] [Cisco CIE DNS team]

DeviceID = 26946

DeviceID [https://developer.cisco.com/docs/cloud-security/] [Cisco CIE DNS team]

Reserved_for_future_expansion = 65535

Reserved for future expansion [RFC 6891]

classmethod _validate_value(value)[source]

Reject value unless it passes the range check _missing_() makes.

Overrides _validate_value() with that check and the message it raises, so register() refuses exactly the values get() refuses, in the same words (#1816).

Parameters:

value (Any) – Value about to be looked up or minted.

Raises:

EnumValueError – If value fails that check. A ValueError, so an except ValueError caller is unaffected.

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

Option

Footnotes