summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAugustin Fabre <augustin@augfab.fr>2019-06-10 17:32:34 +0000
committerAugustin Fabre <augustin@augfab.fr>2019-06-10 17:32:34 +0000
commit9bbbf64c32b955e2d7651099796418e44f242d08 (patch)
treec4adfd783c43d1608c35a4bff60c6757b20e37f1
parent8802149fa0011e102ab35cc573c21af2fb5fdb2c (diff)
downloadupdate-dns-master.tar.gz
update-dns-master.tar.bz2
update-dns-master.tar.xz
Stop printing IP addressesHEADmaster
-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()