Added support for cloudflare API tokens. Do not provide a login if using one. The token must have permissions for All zones - Zone:Read, DNS:Edit.

This commit is contained in:
Greg Best 2020-02-21 02:04:26 +13:00
parent 89c2230ada
commit 36dab363df
2 changed files with 261 additions and 250 deletions

497
ddclient

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,5 @@
###################################################################### ######################################################################
## ##
## Define default global variables with lines like: ## Define default global variables with lines like:
## var=value [, var=value]* ## var=value [, var=value]*
## These values will be used for each following host unless overridden ## These values will be used for each following host unless overridden
@ -12,7 +12,7 @@
## with a \ ## with a \
## ##
## ##
## Warning: not all supported routers or dynamic DNS services ## Warning: not all supported routers or dynamic DNS services
## are mentioned here. ## are mentioned here.
## ##
###################################################################### ######################################################################
@ -48,7 +48,7 @@ ssl=yes # use ssl-support. Works with
#use=fw, fw=192.168.1.254/status.htm, fw-skip='IP Address' # found after IP Address #use=fw, fw=192.168.1.254/status.htm, fw-skip='IP Address' # found after IP Address
# #
## To obtain an IP address from Web status page (using the proxy if defined) ## To obtain an IP address from Web status page (using the proxy if defined)
## by default, checkip.dyndns.org is used if you use the dyndns protocol. ## by default, checkip.dyndns.org is used if you use the dyndns protocol.
## Using use=web is enough to get it working. ## Using use=web is enough to get it working.
## WARNING: set deamon at least to 600 seconds if you use checkip or you could ## WARNING: set deamon at least to 600 seconds if you use checkip or you could
## get banned from their service. ## get banned from their service.
@ -210,8 +210,8 @@ ssl=yes # use ssl-support. Works with
#protocol=cloudflare, \ #protocol=cloudflare, \
#zone=domain.tld, \ #zone=domain.tld, \
#ttl=1, \ #ttl=1, \
#login=your-login-email, \ #login=your-login-email, \ # if using global key
#password=APIKey \ #password=APIKey \ # if using an api token it must have permissions "All zones - Zone:Read, DNS:Edit"
#domain.tld,my.domain.tld #domain.tld,my.domain.tld
## ##
@ -225,7 +225,7 @@ ssl=yes # use ssl-support. Works with
## ##
## Duckdns (http://www.duckdns.org/) ## Duckdns (http://www.duckdns.org/)
## ##
# #
# password=my-auto-generated-password # password=my-auto-generated-password
# protocol=duckdns hostwithoutduckdnsorg # protocol=duckdns hostwithoutduckdnsorg
@ -239,7 +239,7 @@ ssl=yes # use ssl-support. Works with
## ##
## MyOnlinePortal (http://myonlineportal.net) ## MyOnlinePortal (http://myonlineportal.net)
## ##
# protocol=dyndns2 # protocol=dyndns2
# ssl=yes # ssl=yes
# # ipv6=yes # optional # # ipv6=yes # optional