A DNS cache contains entries that translate Internet domain names to IP addresses, for example matching setcronjob.com with 126.96.36.199.
Besides the system DNS cache, SetCronJob has its own DNS cache. Once a domain name is resolved to an IP address, it’ll be kept in SetCronJob’s DNS cache for one day.
At the moment, our service has around 100,000 cronjobs and active cronjobs are executing 1,300,000 times a day. Thanks to our DNS cache, the cron processors just need to resolve 8,500 domain names a day instead of 1.3 million times a day.
In case your domain name changes its IP address, the DNS cache may not be updated as soon as expected; it’ll cause a glitch in the cron execution. There are two cases:
- If the cron fails i.e. the old IP address doesn’t respond appropriately with the current request, SetCronJob will refresh the cache entry, trying to get the new IP address.
- If the cron is still fine, the IP address will be updated the next day. To force SetCronJob to refresh any DNS cache for any domain name, just Edit and then Save one cronjob with that domain name.
If there’s something unclear, feel free to comment below, or email me.
Nguyen An Thuan.