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

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