@staticmethod
def _get_recursion_available_value_from_flags(flags: int) ->bool:
    """
        Retrieve the recursion_available value from flags.

        :param flags: an integer representing the flags of a dns message
        :return: value of the recursion_available field as bool
        """
    return (flags & int.from_bytes(b'\x00\x00\x00\x80', 'big')) >> 7 == 1
