When I try to access a Cloudfront distribution, it gives me an IP in the US east coast, and not one close to my location (The Netherlands). AWS has edge nodes in Amsterdam.
I’ve contacted AWS support but they can’t help. Cloudfront primarily uses the EDNS-client-subnet and 126.96.36.199 doesn’t support this. When that is not available, Cloudfront falls back to the resolvers IP for location estimate.
dig resolver-identity.cloudfront.net @188.8.131.52 returns
184.108.40.206 which is in Amsterdam. However, Cloudfront doesn’t see that or something.
Is this a common issue? Any clues what I can do about it? AWS support says everything is OK and they can’t do anything about it.
From what I can tell, AWS should use the resolvers IP (
220.127.116.11) to guesstimate the users location (Amsterdam in this case) and respond with an edge node close to that. But what do I know…