2funky_105078
Apr 16, 2014Cirrus
GTM iRule to set different TTL for each RR
Hi,
In our GTMs, I have the requirement to set manually the TTL timeout for a wide-IP,let's call it www.example.com (it is within our enterprise not in the internet), based on RTT and static methods:
- First run the RTT method (and set TTL 60sec on the DNS answer)
- If not working or not already evaluated, use the first DC as DNS answer static (with TTL 30sec)
- And finally if the first DC is dead, try with randomly the other 2 DCs (with TTL 20sec)
I realized that this cannot be done but with a GTM iRule, using something like this:
https://devcentral.f5.com/wiki/iRules.DNS__ttl.ashx
As i never wrote GTM iRuls, would you be able to give me some starting hint how to write this?
GIulio.