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:
{
   [3] = "NXDOMAIN",
   [6] = "YXDOMAIN",
   [8] = "NXRRSet",
   [10] = "NOTZONE",
   [12] = "unassigned-12",
   [21] = "BADALG",
   [1] = "FORMERR",
   [14] = "unassigned-14",
   [0] = "NOERROR",
   [22] = "BADTRUNC",
   [2] = "SERVFAIL",
   [5] = "REFUSED",
   [11] = "unassigned-11",
   [18] = "BADTIME",
   [7] = "YXRRSET",
   [20] = "BADNAME",
   [4] = "NOTIMP",
   [15] = "unassigned-15",
   [16] = "BADVERS",
   [19] = "BADMODE",
   [13] = "unassigned-13",
   [17] = "BADKEY",
   [9] = "NOTAUTH",
   [3842] = "BADSIG"
}

Errors used for non-TSIG/EDNS types.

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

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:
{
   [0] = "NOVALUE",
   [32768] = "DNS_SEC_OK"
}

This deciphers EDNS Z field values.

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

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


Copyright 2016, The Bro Project. Last updated on October 21, 2017. Created using Sphinx 1.5.2.