porkbundomains / porkbun-dynamic-dns-python

Our minimalist dynamic DNS client written in Python
MIT License
108 stars 28 forks source link

Suggestion... instead of deleting and then recreating DNS record, can the script check first for the value, and only recreate if necessary? #9

Open singularity098 opened 2 years ago

singularity098 commented 2 years ago

So it appears that the script will automatically delete the record, and then recreate the record with the new value.

But if the IP address has not changed, wouldn't it be more efficient to just query for the current IP address value, and then only take some action if the desired value differs from the existing value?

I've heard it suggested around the internet to run DDNS scripts like every 10 minutes. If the record is constantly being destroyed and recreated, this makes me worry that I might be causing some operational stress to Porkbun or to the DNS system as a whole by replacing the record so frequently.

I might just be overthinking this, though. Anyway, thanks!

leecalvink commented 1 year ago

I just started using this and this exact thought came to my mind and came here into issues to say this.