From a8e47cd4b6759f255dc49377ab221d521ecc2904 Mon Sep 17 00:00:00 2001 From: sulf1ron Date: Tue, 2 Oct 2018 22:48:39 +0800 Subject: [PATCH] Fix a minor bug in examples\example_update_dynamic_dns.py --- examples/example_update_dynamic_dns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/example_update_dynamic_dns.py b/examples/example_update_dynamic_dns.py index 8f0239c..cd88427 100755 --- a/examples/example_update_dynamic_dns.py +++ b/examples/example_update_dynamic_dns.py @@ -103,7 +103,7 @@ def main(): except IndexError: exit('usage: example-update-dynamic-dns.py fqdn-hostname') - host_name, zone_name = dns_name.split('.', 1) + host_name, zone_name = '.'.join(dns_name.split('.')[:2]), '.'.join(dns_name.split('.')[-2:]) ip_address, ip_address_type = my_ip_address()