Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 704 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 704 Bytes

Cloudflare Dynamic DNS Update Service

  • POSIX-compliant
  • Cloudflare API v4
  • Bearer authentication
  • DNS proxy recognition
  • Installed as a cron job
  • Compatible with OpenBSD

Install

  1. Create /etc/ddns/cloudflare.keys with contents:
ZONE_ID=xxxxxx
API_TOKEN=xxxxxx
  1. Set the owner and file /etc/ddns/cloudflare.keys only readable by the executor of the ddns service

  2. Copy ddns to a directory of your choice, e.g., /usr/sbin/

  3. Add a cron job using crontab -e under the service executor/user:

*/10 * * * * /usr/sbin/ddns

Requirement

  • curl
  • jq

Design Consideration

No Python. Python 3.10 drops support for LibreSSL, thus not working on OpenBSD.