summaryrefslogtreecommitdiffstats
path: root/update-dns
diff options
context:
space:
mode:
Diffstat (limited to 'update-dns')
-rwxr-xr-xupdate-dns4
1 files changed, 0 insertions, 4 deletions
diff --git a/update-dns b/update-dns
index 21d66db..04f806a 100755
--- a/update-dns
+++ b/update-dns
@@ -70,14 +70,10 @@ def update_record(domain, record, val, key):
def update_address_records(domain, key, force=False):
host_ipv4, host_ipv6 = host_ips()
record_ipv4, record_ipv6 = record_ips(domain, key)
- print((host_ipv4, host_ipv6))
- print((record_ipv4, record_ipv6))
if force or host_ipv4 != record_ipv4 or host_ip_changed(host_ipv4):
update_record(domain, "A", host_ipv4, key)
if force or host_ipv6 != record_ipv6 or host_ip_changed(host_ipv6):
update_record(domain, "AAAA", host_ipv6, key)
- record_ipv4, record_ipv6 = record_ips(domain, key)
- print((record_ipv4, record_ipv6))
def main(argv):
parser = ArgumentParser()