A rescue dog's history can be complete, partial or largely unknown. A dog rehomed by a family with full veterinary records is in a different position from a stray.
What matters for insurance is not what happened before the rescue. It is the information available about the dog now, and the questions the insurer asks.
Most rehoming organisations health-check dogs before rehoming, and many vaccinate, microchip and treat while the dog is in their care. That creates a record, and it usually comes to you with the adoption paperwork.
Answer the insurer's questions accurately, using the information you have. If something is genuinely unknown, follow the insurer's or the comparison journey's instructions for unknown information rather than guessing.
Not knowing your dog's whole life story is normal and it is not a barrier to getting a quote.