If you wish to create openings to specific FQDNs you can do so with FQDN objects. The ASA firewall will dynamically update the rule according to what the FQDN resolves to in DNS.
Please let me know if I've misunderstood your question
Happy to help! Please mark as helpful/solution if applicable.
Get in touch: https://torbjorn.dev