From fea176f7f30c18c7f19dc7151d07bf36bdeb8841 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 21 Jan 2020 17:29:05 -0800 Subject: [PATCH] Update upstream example script --- update_ddns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_ddns.py b/update_ddns.py index 8f0239c..cd88427 100755 --- a/update_ddns.py +++ b/update_ddns.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()