Disable IPv6 queries/response for certain domains

Hi,

we are using a service which is behind Cloudflare. We are experiencing
problems when we use this service via IPv6. While working with the
service provider to resolve this issue, I am looking for a quick
mitigation by forcing IPv4-only resolution for this service.

Is there a way to force IPv4-ony responses (i.e. drop any IPv6
queries/answers) for certain domains using unbound?

I don't want to pin to certain IPv4 addresses because I don't know if
Cloudflare will changes IP addresses. I.e. IPv4 lookup is still
wanted.

Thanks!

Igor Sverkos via Unbound-users <unbound-users@lists.nlnetlabs.nl>:

Is there a way to force IPv4-ony responses (i.e. drop any IPv6
queries/answers) for certain domains using unbound?

"private-address" statements filters out specified IPv6 (or IPv4)
records. By specifying all IPv6 address space (::/0) unbound filters
out all AAAA records. i.e: