def METHOD_NAME(value):
    """Convert a DNS rdata type value to text.
    If the value has a known mnemonic, it will be used, otherwise the
    DNS generic type syntax will be used.
    Raises ``ValueError`` if the rdata type value is not >= 0 and <= 65535.
    Returns a ``str``.
    """
    text = RdataType.METHOD_NAME(value)
    if text.startswith("TYPE"):
        registered_text = _registered_by_value.get(value)
        if registered_text:
            text = registered_text
    return text.replace('_', '-')