base/protocols/dns/consts.bro

DNS

Types, errors, and fields for analyzing DNS data. A helper file for DNS analysis scripts.

Namespace:DNS
Source File:/scripts/base/protocols/dns/consts.bro

Summary

Constants

DNS::ANY: count A QTYPE value describing a request for all records.
DNS::EDNS: count An OPT RR TYPE value described by EDNS.
DNS::PTR: count RR TYPE value for a domain name pointer.
DNS::base_errors: table &default = function &optional Errors used for non-TSIG/EDNS types.
DNS::classes: table &default = function &optional Possible values of the CLASS field in resource records or QCLASS field in query messages.
DNS::edns_zfield: table &default = "?" &optional This deciphers EDNS Z field values.
DNS::query_types: table &default = function &optional Mapping of DNS query type codes to human readable string representation.

Detailed Interface

Constants

DNS::ANY
Type:count
Default:255

A QTYPE value describing a request for all records.

DNS::EDNS
Type:count
Default:41

An OPT RR TYPE value described by EDNS.

DNS::PTR
Type:count
Default:12

RR TYPE value for a domain name pointer.

DNS::base_errors
Type:table [count] of string
Attributes:&default = function &optional
Default:
{
   [12] = "unassigned-12",
   [14] = "unassigned-14",
   [20] = "BADNAME",
   [10] = "NOTZONE",
   [11] = "unassigned-11",
   [8] = "NXRRSet",
   [0] = "NOERROR",
   [1] = "FORMERR",
   [5] = "REFUSED",
   [21] = "BADALG",
   [3842] = "BADSIG",
   [13] = "unassigned-13",
   [17] = "BADKEY",
   [3] = "NXDOMAIN",
   [19] = "BADMODE",
   [6] = "YXDOMAIN",
   [9] = "NOTAUTH",
   [18] = "BADTIME",
   [22] = "BADTRUNC",
   [4] = "NOTIMP",
   [7] = "YXRRSET",
   [16] = "BADVERS",
   [15] = "unassigned-15",
   [2] = "SERVFAIL"
}

Errors used for non-TSIG/EDNS types.

DNS::classes
Type:table [count] of string
Attributes:&default = function &optional
Default:
{
   [1] = "C_INTERNET",
   [255] = "C_ANY",
   [3] = "C_CHAOS",
   [254] = "C_NONE",
   [4] = "C_HESOD",
   [2] = "C_CSNET"
}

Possible values of the CLASS field in resource records or QCLASS field in query messages.

DNS::edns_zfield
Type:table [count] of string
Attributes:&default = "?" &optional
Default:
{
   [32768] = "DNS_SEC_OK",
   [0] = "NOVALUE"
}

This deciphers EDNS Z field values.

DNS::query_types
Type:table [count] of string
Attributes:&default = function &optional
Default:
{
   [26] = "PX",
   [22] = "NSAP",
   [29] = "LOC",
   [103] = "UNSPEC",
   [11] = "WKS",
   [10] = "NULL",
   [46] = "RRSIG",
   [52] = "TLSA",
   [30] = "EID",
   [49] = "DHCID",
   [27] = "GPOS",
   [45] = "IPSECKEY",
   [255] = "*",
   [16] = "TXT",
   [38] = "A6",
   [42] = "APL",
   [99] = "SPF",
   [257] = "CAA",
   [21] = "RT",
   [59] = "CDS",
   [24] = "SIG",
   [249] = "TKEY",
   [254] = "MAILA",
   [250] = "TSIG",
   [50] = "NSEC3",
   [18] = "AFSDB",
   [2] = "NS",
   [31] = "NIMLOC",
   [32769] = "DLV",
   [28] = "AAAA",
   [5] = "CNAME",
   [101] = "UID",
   [32768] = "TA",
   [39] = "DNAME",
   [3] = "MD",
   [9] = "MR",
   [40] = "SINK",
   [251] = "IXFR",
   [252] = "AXFR",
   [25] = "KEY",
   [17] = "RP",
   [253] = "MAILB",
   [1] = "A",
   [61] = "OPENPGPKEY",
   [4] = "MF",
   [15] = "MX",
   [36] = "KX",
   [100] = "UINFO",
   [12] = "PTR",
   [14] = "MINFO",
   [13] = "HINFO",
   [33] = "SRV",
   [102] = "GID",
   [19] = "X25",
   [6] = "SOA",
   [55] = "HIP",
   [41] = "OPT",
   [35] = "NAPTR",
   [37] = "CERT",
   [43] = "DS",
   [23] = "NSAP-PTR",
   [256] = "URI",
   [48] = "DNSKEY",
   [51] = "NSEC3PARAM",
   [44] = "SSHFP",
   [47] = "NSEC",
   [7] = "MB",
   [34] = "ATMA",
   [20] = "ISDN",
   [32] = "NB",
   [8] = "MG",
   [60] = "CDNSKEY"
}

Mapping of DNS query type codes to human readable string representation.


Copyright 2016, The Bro Project. Last updated on December 19, 2018. Created using Sphinx 1.8.2.