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

Commit 11cc361

Browse files
authored
Merge pull request #57 from sulf1ron/master
Fix a minor bug in examples\example_update_dynamic_dns.py
2 parents 2255073 + a8e47cd commit 11cc361

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)