DNS Query Type
Synopsis
Converts DNS query type numbers to their corresponding human-readable names using ASIM lookup logic.
Schema
- dns_query_type:
description: <text>
field: <ident>
target_field: <ident>
if: <script>
ignore_failure: <boolean>
ignore_missing: <boolean>
on_failure: <processor[]>
on_success: <processor[]>
tag: <string>
Configuration
The following fields are used to define the processor:
Field | Required | Default | Description |
---|---|---|---|
field | Y | Field containing the DNS query type number | |
target_field | N | Same as field | Field to store the query type name |
description | N | - | Explanatory notes |
if | N | - | Condition to run |
ignore_failure | N | false | See Handling Failures |
ignore_missing | N | false | Continue processing if the field is missing |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |
Details
The processor accepts DNS query type numbers in various formats (string, integer, float) and converts them to standardized DNS record type names according to IANA specifications. It supports all standard DNS record types including:
- Common types: A, AAAA, CNAME, MX, NS, PTR, SOA, TXT
- Security types: DNSSEC-related records (DS, RRSIG, NSEC, DNSKEY, etc.)
- Service types: SRV, NAPTR, URI, CAA
- Legacy types: MD, MF, MB, MG, MR (obsolete record types)
- Query types: AXFR, IXFR, ANY (zone transfer and special queries)
This processor follows IANA DNS Parameters specifications and includes support for both standard record types and special query types used in DNS operations.
Numbers in the Private Use range (65280-65534) are mapped to "Reserved for Private Use", while unrecognized numbers default to "Unassigned".
Some DNS record types (like MD, MF, MB) are obsolete and rarely used in modern DNS implementations, but are included for completeness and historical compatibility.
Examples
Basic Usage
Convert a common DNS query type... |
|
to its readable name: |
|
Using Target Field
Preserve the original number... |
|
while adding the readable name: |
|
Mail Exchange Records
Mail-related DNS queries... |
|
are properly identified: |
|
Service Records
Service discovery queries... |
|
show service record types: |
|
DNSSEC Records
DNSSEC-related queries... |
|
are identified for security analysis: |
|
Zone Transfer Queries
Zone transfer operations... |
|
are flagged as special operations: |
|
Certificate Authority Records
Modern certificate authority records... |
|
are supported for TLS validation: |
|
Private Use Range
Numbers in the private use range... |
|
are identified as private: |
|
Unknown Query Types
Unrecognized query types... |
|
default to "Unassigned": |
|