DDNS updater code for CloudFlare DNS

…for the upcoming always running Raspberry Pi server project.

You could run a cron job or a loop — as per your requirement.

I am not going to go through the NS update in this article; I assume that you have ensured that your authoritative DNS servers, or nameservers have been changed to CloudFlare.

Here’s the python snippets.

Sources:

  1. CloudFlare API List DNS Records
  2. CloudFlare API Commit DNS Records

Thank you!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store