-
-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #451: Adds support for round-robin records to Cloudflare. #454
Conversation
This is a very prominent provider in Inadyn. You have to add both documentation (man page) and at least one example config for me to consider this for inclusion. Also, please describe how you have tested this to ensure you have not introduced any regressions to the common use case. |
Understood. Doing...
Sure!
I fully understand your concern. But, as you can see in the code, the only real change occurs when All other cases are exactly the same without this PR (apart from |
Also: I just changed one of my company routers to use a custom build containing this PR. 🐶 🥫 |
Thank you so much, this will help a lot when/if any issues creep up or users have questions! The code looks very clean and the added man-page update is also clear, awesome! Just one small final thing, could you add the URL you mentioned above to the code as a comment? Anything helps when going back in time and it's better to have references close at hand rather than having to dig through old closed PRs. |
Looks great, thank you for taking the time to help improve the Cloudflare support! |
Sure! Also, I'm willing to help with anything I can. I'm not planning to go anywhere 😉.
Done! Also, I took the liberty to add some links to Cloudflare API documentation for each http request the plugin does. |
A minor: #451 called for CloudFlare and No-IP support. I implemented only the first one. Due to a recent change in our plans around here we have decided to use only Cloudflare for everything. |
That's fine seeing as you're the original reporter 😃👍 |
@troglobit We can haz a new release, please? |
I'll see what I can do over the next few days. But I agree, it's time! 😎 |
Fixes #451.
Cloudflare configuration now accepts a Cloudflare identifier in
hostname
allowinginadyn
to update a round-robin dns hostname (a hostname with multiple ip address).Sample:
Changes in source code:
get_id
tojson_extract
: can extract any property fromjson
(not justid
).hostname
looks like a cloudflare id (32 chars and only hex digits) query thedns_records
endpoint directly byid
.Related: https://developers.cloudflare.com/dns/manage-dns-records/how-to/round-robin-dns