sodnpoo.com

autozen ttl update

I've updated my Zen DNS script to be able to set the TTL. This is really handy as Zen reset the TTL back to 86400 seconds 24 hours after you change it. It uses the same XSLT method as used to set the IP and is triggered by passing 'force' as the first parameter to the script - this also forces a IP update even if it's currently correct.

I currently have a cronjob set to run it in standard mode (i.e. check if it's wrong before updating) every two minutes and once every six hours with force set. This means normally I'm only hitting Zen's boxes four times a day which I don't think is too much of an extra load - although there will of course be extra load on their name servers as I'm setting my TTLs lower than the default.

Code can be found here.