freeviruzdotorg
CDCloudflare Developers
•Created by freeviruzdotorg on 11/7/2024 in #general-help
Custom SOA Records and permission for Cloudflare API for DDNS (ddclient or CF API prefer) with BIND9
I'm quite new to attempting to dynamically update DNS from my environemt to anything really out there and wanted to learn. Few questions and some errors I came across with some issues and I've googled/researched in general for trying to resolve it and come up with more and more issues. anyways, here is what it is:
Using - Ubuntu server 22.04
DNS Service - BIND9
Dynamic DNS handled - DDCLIENT (or I would like to just use
cron
with the CF API preferred from bash)
Start:
So i (heavan forbid) used openAI (and explored online forums/CF Forums/API docs and git repos) attempting to configure DDNS with the CF API to push up to my domain to update my IP Address dynamically along with any DNS Records when applicable on my system. It has failed thus far with:
{"success":false,"errors":[{"code":10000,"message":"PUT method not allowed for the api_token authentication scheme"}]}
Permissions configured in CF are:
Zone - Zone - READ
Zone - DNS - Edit
Registrar is from - Squarespace
Name servers are on - Cloudflare
and is also handling all DNS records
Am i missing anything? I can post script at the bottom excluding/blanking information
End goal:
Dynamically Update public IP address from UDM Pro to CF with API
Update DNS records from my on-prem DNS server upstream/downstream to CF and my on-prem DNS server
Thanks!14 replies