The public IP adress of my home is a dynamic IP and I need to access it from outdoors. I didn't want to use services like DynDns or NoIp so I made my own script.
The script is executed each hour, basically it reads my public IP on icanhazip.com, and the IP corresponding to mydomain.com (using the python tool dnsyo). If the adresses are differents, it uses cloudflare API to link my new public IP to mydomain.com.
My problem is that when the IP change I have to wait aproximatively 5h before the propragation of the DNS. During this time, mydomain.com resolves my old public IP so I can't access the new one.
My question is: how can I make this propagation faster?
I saw there (section 3.7) that I can change the Time To Live parameter of my dns zone, if I reduce this variable, will it reduce the propagation time or will it just mess my settings? And if I change it what is a reasonable value to set?