Dns rdata decode

dns-rdata-decode · version 1.0.0 · Communications · free, no key needed

Decode DNS RDATA hex for A, AAAA, NS, CNAME, PTR, MX, TXT, SOA, SRV, or unknown.

Use when you need to: decode dns rdata hex · dns wire rdata to record fields · parse uncompressed dns rdata octets.

Decide before calling

Read the versioned contract and the supported scope below. Reuse dns-rdata-decode@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use dns-rdata-decode@1.0.0 for decode dns rdata hex. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "rr_type_code": 1,
  "rr_class_code": 1,
  "rdata_hex": "c0000201"
}

Response:

{
  "result": {
    "data_version": "iana-dns-parameters-2026-10-21",
    "rr_type": "A",
    "rr_type_code": 1,
    "rr_class": "IN",
    "rr_class_code": 1,
    "wire_known": true,
    "rdata_length": 4,
    "ipv4": "192.0.2.1"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "dns-rdata-decode",
  "version": "1.0.0",
  "input": {
    "rr_type_code": 1,
    "rr_class_code": 1,
    "rdata_hex": "c0000201"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/dns-rdata-decode/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"rr_type_code":1,"rr_class_code":1,"rdata_hex":"c0000201"}'

The machine-readable contract is at /v1/tools/dns-rdata-decode/versions/1.0.0.

CLI

node cli.mjs run dns-rdata-decode 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.