Skip to content

Commit

Permalink
Fix a minor bug in examples\example_update_dynamic_dns.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sulf1ron committed Oct 2, 2018
1 parent fd6464e commit a8e47cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/example_update_dynamic_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit a8e47cd

Please sign in to comment.