{"id":"dns-type-code-lookup","version":"1.0.0","description":"Look up a pinned DNS RR type mnemonic or its numeric code.","supported_operations":["dns type mnemonic to number","lookup dns rr type code","iana dns type code table","what number is this dns record type","convert dns rrtype name and code","dns type code for a aaaa mx soa srv","איתור קוד סוג רשומת דיאן אס"],"unsupported_operations":["encode or decode DNS RDATA","query a DNS resolver","accept private-use type codes outside the pinned excerpt"],"semantics":["Provide exactly one of name or code. name is an uppercase mnemonic from the pinned excerpt, or * . ANY is an alias of the RFC 1035 QTYPE * (255) and the returned name is *.","code is an integer from 0 to 65535. A code or mnemonic that is not in the pinned excerpt is unsupported_input. A lowercase name, an empty name, or a non-integer is invalid_input.","The excerpt is a bounded set of RR type codes whose numbers are fixed by the cited RFCs, pinned as iana-dns-parameters-2026-10-21. It is not a claim that every IANA code is present.","Output is the canonical name, the numeric code, and the defining document. No RDATA is parsed and no DNS query is sent.","More than 512 UTF-8 bytes of JSON input, or a name longer than 10 characters, is limit_exceeded."],"limits":{"max_input_bytes":512,"max_name_chars":10},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":10},"code":{"type":"integer","minimum":0,"maximum":65535}},"oneOf":[{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":10}}},{"type":"object","additionalProperties":false,"required":["code"],"properties":{"code":{"type":"integer","minimum":0,"maximum":65535}}}]},"output_schema":{"type":"object","additionalProperties":false,"required":["data_version","name","code","defining_document"],"properties":{"data_version":{"type":"string","const":"iana-dns-parameters-2026-10-21"},"name":{"type":"string","minLength":1,"maxLength":10},"code":{"type":"integer","minimum":0,"maximum":65535},"defining_document":{"type":"string","minLength":8,"maxLength":12}}},"examples":[{"input":{"name":"AAAA"},"output":{"data_version":"iana-dns-parameters-2026-10-21","name":"AAAA","code":28,"defining_document":"RFC 3596"}},{"input":{"code":15},"output":{"data_version":"iana-dns-parameters-2026-10-21","name":"MX","code":15,"defining_document":"RFC 1035"}}],"execute_url":"/v1/tools/dns-type-code-lookup/versions/1.0.0/execute"}