Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit a8e47cd

Browse files
committed
Fix a minor bug in examples\example_update_dynamic_dns.py
1 parent fd6464e commit a8e47cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/example_update_dynamic_dns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def main():
103103
except IndexError:
104104
exit('usage: example-update-dynamic-dns.py fqdn-hostname')
105105

106-
host_name, zone_name = dns_name.split('.', 1)
106+
host_name, zone_name = '.'.join(dns_name.split('.')[:2]), '.'.join(dns_name.split('.')[-2:])
107107

108108
ip_address, ip_address_type = my_ip_address()
109109

0 commit comments

Comments
 (0)