{"id":"dns-class-code-lookup","version":"1.0.0","description":"Look up a pinned DNS class mnemonic or its numeric code.","supported_operations":["dns class mnemonic to number","lookup dns rr class code","iana dns class code table","what number is the dns class in","convert dns class name and code","dns class code for in ch hs any","איתור קוד מחלקת רשומת דיאן אס"],"unsupported_operations":["encode or decode DNS RDATA","choose a class for a zone","query a DNS resolver"],"semantics":["Provide exactly one of name or code. The pinned classes are IN 1, CS 2, CH 3, HS 4, NONE 254 and * 255. ANY is an alias of * and the returned name is *.","query_only is true only for * (RFC 1035 QCLASS). NONE is reserved for RFC 2136 update prerequisites and updates, so query_only is false.","A mnemonic or code outside the excerpt is unsupported_input. Lowercase text, an empty name, both fields, or neither field is invalid_input.","data_version is iana-dns-parameters-2026-10-21. This tool does not encode RDATA and does not send a DNS query.","More than 512 UTF-8 bytes of JSON input, or a name longer than 4 characters, is limit_exceeded."],"limits":{"max_input_bytes":512,"max_name_chars":4},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":4},"code":{"type":"integer","minimum":0,"maximum":65535}},"oneOf":[{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":4}}},{"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","query_only"],"properties":{"data_version":{"type":"string","const":"iana-dns-parameters-2026-10-21"},"name":{"type":"string","minLength":1,"maxLength":4},"code":{"type":"integer","minimum":0,"maximum":65535},"defining_document":{"type":"string","minLength":8,"maxLength":12},"query_only":{"type":"boolean"}}},"examples":[{"input":{"name":"IN"},"output":{"data_version":"iana-dns-parameters-2026-10-21","name":"IN","code":1,"defining_document":"RFC 1035","query_only":false}},{"input":{"code":255},"output":{"data_version":"iana-dns-parameters-2026-10-21","name":"*","code":255,"defining_document":"RFC 1035","query_only":true}}],"execute_url":"/v1/tools/dns-class-code-lookup/versions/1.0.0/execute"}