Skip to content

Main content

Network: DNS Rcode Low High Field Join Tool

Join the EDNS extended eight-bit RCODE field and DNS header low four-bit RCODE into its standardized twelve-bit number; no response-name registry.

Loading tool…

Description

Combine the eight-bit extendedRcode and four-bit headerRcode as 16 × extendedRcode + headerRcode.

Packet headers encode several meanings in fixed-width fields. Bit positions, network byte order, and reserved values must be distinguished from validation of an entire message.

Combine the eight-bit extendedRcode and four-bit headerRcode as 16 × extendedRcode + headerRcode.

When to use this tool

Use Network: DNS Rcode Low High Field Join when you need to decode or encode one explicit packet field.

How to use the tool and how it works

  1. Enter headerRcode, extendedRcode. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read result. Expand result to inspect the returned fields.

Combine the eight-bit extendedRcode and four-bit headerRcode as 16 × extendedRcode + headerRcode.1

Input fieldMeaning and unitsAccepted input
headerRcodeHeader RcodeRequired. Safe integer.
extendedRcodeExtended RcodeRequired. Safe integer.
Output fieldInterpretationReturned shape
resultResultRequired. Object.
result.rcodeRcodeCalculated result member: number.
json
{
  "input": {
    "headerRcode": 0,
    "extendedRcode": 1
  },
  "output": {
    "result": {
      "rcode": 16
    }
  }
}

Limitations and assumptions

  • This does not locate an OPT record or map the resulting code to a response meaning.
  • Outputs are nested inside result. Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Inspect the complete captured header and apply the relevant protocol's structural and state rules.

References

  1. Calculation and input contract: network/dns-rcode-low-high-field-join — tool.io

Similar or alternative tools