# part of Package DYNDNS 4.0.0-r60785-testing, see documentation for licence
# Provider phpdyn - a free php to powerdns updater script
# to be found at http://www.webnmail.de/phpdyn
# Last change: $Id: PHPDYN 55553 2019-04-04 18:48:51Z lanspezi $

update_method='http'

default_update_host_n='0'
default_update_host_1='https://nsupd.example.com/dynip.php?username=${dyndns_username}&pass=${dyndns_md5password}&ipaddr=${dyndns_new_ipv4}&domain=${dyndns_fqdn_hostname}'
default_update_host_1_ca="ca-bundle.crt"
default_update_host_2='http://nsupd.example.com/dynip.php?username=${dyndns_username}&pass=${dyndns_md5password}&ipaddr=${dyndns_new_ipv4}&domain=${dyndns_fqdn_hostname}'

update_success='.*Update:.*'
update_failure='invalid\|failed'

# phpdyn specific curl commands
curl_line="--get -d username=$login_username -d pass=$login_password -d domain=$hostname"
