Forum archive
TKLAPP CNAME record TTL is too long
Hi guys, I been using tklapp for a couple of years on several servers with excelent results but sometimes, in particular last year, I found some issues with invalid *.tklapp.com domains resolution.
My server has a fixed public IP with and no 'x' bit in /etc/cron.hourly/hubdns-update. The domain was registered using hubdns-update command. Also, I am almost sure the server had no downtime and that it was 100% online.
Usualy after several days, maybe a month, I get alerts indicating that my-domain.tklapp.com does not work anymore (because it redirects to tklapp.com). After that, I have to manually run hubdns-update on the server and alert everyone to wait a couple of hours in order to DNS caches get updated.
I think I may have 2 problems here:
a) tklapp.com not locating my server. Perhaps this is because I have no 'x' bit in hubdns-update cronjob? Again, I am sure the server was alive all the time.
b) the DNS caches are outdated for too long, despite the domain being ok.
For example, if I run hubdns-update after a) issue, and I ask my DNS for my-domain.tklapp.com, I get for several hours
dig my-domain.tklapp.com
;; ANSWER SECTION: my-domain.tklapp.com. 85986 IN CNAME tklapp.com. tklapp.com. 85986 IN A 23.21.244.168
but if I ask my-domain.tklapp.com to one of tklapp DNSs at AWS, I get the right IP (XYZ.XYZ.XYZ.XYZ)
dig my-domain.tklapp.com @ns-217.awsdns-27.com.
;; ANSWER SECTION:
my-domain.tklapp.com. 10 IN A XYZ.XYZ.XYZ.XYZ
I think this issue may be caused by a CNAME record to tklapp.com with very high TTL (1 day). Perhaps if CNAME records to tklapp.com have a lower TTL, like 3600, DNS caches will be cleared sooner?
Any advice will be welcome!
Thanks,
Ariel
Where is your DNS coming from? You can see from your dig of AWS nameservers that the TTL is 10s. So it's the caching between the AWS nameserver and your browser that is causing the issues.
I note that for me: