DNS Response Code
Synopsis
Converts DNS response code numbers to their corresponding human-readable names using ASIM lookup logic.
Schema
- dns_response_code:
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 response code number | |
target_field | N | Same as field | Field to store the response code 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 response code numbers in various formats (string, integer, float) and converts them to standardized DNS response code names according to RFC specifications. It supports all standard DNS response codes including:
- Success codes: NOERROR (successful query)
- Client error codes: FORMERR (format error), NOTIMP (not implemented), REFUSED (query refused)
- Server error codes: SERVFAIL (server failure), NXDOMAIN (domain does not exist)
- Zone error codes: NOTAUTH (not authoritative), NOTZONE (name not in zone)
- Security codes: BADKEY (bad key), BADTIME (bad time), BADALG (bad algorithm)
- Extension codes: BADVERS (bad version), BADCOOKIE (bad cookie)
This processor follows RFC 1035, RFC 2136, RFC 2845, and other DNS-related RFCs for response code definitions, ensuring compatibility with standard DNS implementations.
Numbers in the Private Use range (3841-4095) are mapped to "Reserved for Private Use", while unrecognized numbers default to "Unassigned".
Understanding DNS response codes is crucial for network troubleshooting. NXDOMAIN indicates the queried domain doesn't exist, while SERVFAIL suggests DNS server issues that may require investigation.
Examples
Successful Query
A successful DNS query... |
|
returns the success status: |
|
Domain Not Found
When a domain doesn't exist... |
|
the error is clearly identified: |
|
Server Failure
DNS server errors... |
|
indicate infrastructure issues: |
|
Query Refused
Refused queries... |
|
show access control issues: |
|
Format Error
Malformed DNS queries... |
|
are flagged as format errors: |
|
Authentication Issues
DNSSEC authentication failures... |
|
show key validation problems: |
|
Zone Transfer Errors
Zone authority issues... |
|
indicate authorization problems: |
|
Cookie Extension Errors
DNS cookie validation failures... |
|
are identified for security analysis: |
|
Unknown Response Codes
Unrecognized response codes... |
|
default to "Unassigned": |
|