#12500: Add cloudflare.com to DDNS Scripts
--------------------------+----------------------------------
  Reporter:  easisee@…    |      Owner:  developers
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:  Chaos Calmer (trunk)
 Component:  packages     |    Version:  Trunk
Resolution:               |   Keywords:
--------------------------+----------------------------------

Comment (by sanshinron):

 The above patch is not working anymore due to changes in cloudflare api.
 It returns success message, but in reality nothing gets changed.
 I've reviewed cloudflare api documentation and managed to "hack" a new
 url:
 {{{
 
https://www.cloudflare.com/api_json.html?a=rec_edit&email=[USERNAME]&tkn=[PASSWORD]&type=A&z=[DOMAIN]&name=[SUBDOMAIN]&service_mode=0&ttl=1&id=[ID]&content=[IP]
 }}}

 Of course we need to define DOMAIN, SUBDOMAIN and ID in /etc/config/ddns.

 ID is available with the following call:
 {{{
 https://www.cloudflare.com/api_json.html?a=rec_load_all&email=YOUR-
 EMAIL&tkn=YOUR-API-KEY&z=YOUR-DOMAIN
 }}}

 After these changes the dns entry gets updated properly.

--
Ticket URL: <https://dev.openwrt.org/ticket/12500#comment:5>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to