I need to dynamically serve DNS responses based on the source IP address Autonomous System (AS) number.
My current setup uses Cloudflare as a DNS-only provider. Due to network restrictions, I need to direct traffic from specific Internet Service Providers (ISPs).
I've researched geolocation-based DNS management, but all my customers are located in a single country. Instead, I need to return results based on the AS number to determine the ISP. If not possible to use the source IP address, use source IP ranges. This would allow me to export IP ranges associated with each ISP under their respective ASN.
Question: Is it possible to use a cloud-based DNS solution with the required features, or do I need to run my own on-premises DNS server to achieve these results?