Update upstream example script

This commit is contained in:
IamTheFij 2020-01-21 17:29:05 -08:00
parent c1125b9310
commit fea176f7f3

View File

@ -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()