I had been doing some testing at my side to know the working of Cloudflare’s 1.1.1.1 anycast DNS resolver service.
I was trying to know the IP address that is used by the resolver to contact the authoritative DNS servers for a particular domain. To do those test, I tried using the domain resolver-identity.cloudfront.net. It tells the recursive resolver’s IP address. The command that I used was dig resolver-identity.cloudfront.net@1.1.1.1 and sometimes I used to get the IP of the resolver and sometimes not. Does Cloudflare’s recursive resolver 1.1.1.1 tries to block dns resolutons that returns its own IP address because I tried using Google’s 8.8.8.8 and I was getting the recursive resolver’s IP always.
cloudfront.net has both IPv4 and IPv6 nameservers. So if you ask an IPv6 server for resolver-identity.cloudfront.netA, it will return a negative response. And if you ask an IPv4 server for AAAA, it will also return a negative response.
When you’re using a dual-stack resolver, like 1.1.1.1, it will work intermittently.
You have to use a test that’s carefully configured with IPv4-only or IPv6-only nameservers, or that uses TXT records, such as those operated by Akamai or PowerDNS.