diff --git a/README.md b/README.md index 6352b682..5116a0bb 100644 --- a/README.md +++ b/README.md @@ -100,8 +100,7 @@ For the complete list, see `inadyn -L`, for machine friendly JSON output, use `inadyn -L -j`. DDNS providers not supported natively can be enabled using the custom, -or generic, DDNS plugin. E.g. . See below -for configuration examples. +or generic, DDNS plugin. See below for configuration examples. In-A-Dyn defaults to HTTPS, but not all providers may support this, so try disabling SSL for the update (`ssl = false`) or the checkip phase @@ -332,6 +331,7 @@ hostname syntax differs from above: ddns-server = dynamicdns.park-your-domain.com ddns-path = "/update?domain=%u&password=%p&host=%h&ip=%i" hostname = { "@", "www", "test" } + ddns-response = "0" } Here three hostnames are updated, one HTTP GET update request for every diff --git a/plugins/namecheap.c b/plugins/namecheap.c index 84dc0d3c..e6c4c5d3 100644 --- a/plugins/namecheap.c +++ b/plugins/namecheap.c @@ -23,9 +23,9 @@ #define NAMECHEAP_UPDATE_IP_REQUEST \ "GET %s?" \ - "host=%s&" \ - "password=%s&" \ "domain=%s&" \ + "password=%s&" \ + "host=%s&" \ "ip=%s " \ "HTTP/1.0\r\n" \ "Host: %s\r\n" \ @@ -72,7 +72,7 @@ static int response(http_trans_t *trans, ddns_info_t *info, ddns_alias_t *alias) DO(http_status_valid(trans->status)); - if (strstr(rsp, "good") || strstr(rsp, "nochg")) + if (strstr(rsp, "0")) return 0; return RC_DDNS_RSP_NOTOK;