X-Git-Url: https://git.ralfj.de/dyn-nsupdate.git/blobdiff_plain/32be553e5075e9744e0f0793e8a09a205b2dc1c0..7b0e7e640748b57d853245fe8d2e09235695c177:/client-scripts/dyn-ns-client?ds=sidebyside diff --git a/client-scripts/dyn-ns-client b/client-scripts/dyn-ns-client index 93b977f..85c2910 100755 --- a/client-scripts/dyn-ns-client +++ b/client-scripts/dyn-ns-client @@ -143,6 +143,8 @@ def updateDomain(server, domain, ipv4, ipv6, password, config, verbose): if ipv6 is not None: url += '&ipv6='+urllib.parse.quote(ipv6) expected += " "+ipv6 + if verbose >= VERBOSE_FULL: + print("Request:",url) result = urlopen(url, config) # did everything go as planned? @@ -167,7 +169,7 @@ def updateDomain(server, domain, ipv4, ipv6, password, config, verbose): else: # Something went wrong print("Unexpected answer from server",server,"while updating",domain) - print(result) + print("Got '{}', expected '{}'".format(result, expected)) return False if __name__ == "__main__":