Forum Discussion
Problem with geolocation with GTM in a delegated domain scenario
Our GTMs operate as an authoritative subdomain, so the only traffic that gets to GTM comes from our regular DNS servers. Because of this, the client source IP is lost and we are not able to take any actions based on the client's IP address. The only workaround I have come up with would be to create another GTM listerner that operates for a totally domain name that's not already authoritative on our regular DNS servers. This would allow the client to query the GTM directly, therefore the client IP would be known.
Have I explained this clearly, and are there any other ways to get the source IP of a GTM client in this setup?
1 Reply
- IanB
Employee
It's quite common to deploy GTM using CNAMEs to redirect the queries to a subdomain that the GTM is authoritative for
For example, www.myservice.com would return a CNAME to www.gtm.myservice.com
Alternatively, if your clients support EDNS0 and are setting the client subnet field, you could potentially load balance on that
https://devcentral.f5.com/articles/implementing-client-subnet-in-dns-requests
https://devcentral.f5.com/wiki/iRules.DNS__edns0.ashx
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com