diff --git a/binder/bcommon/helpers.py b/binder/bcommon/helpers.py index c8d8dbb..7fe2f6a 100644 --- a/binder/bcommon/helpers.py +++ b/binder/bcommon/helpers.py @@ -61,7 +61,7 @@ def add_record(clean_data): key_algorithm = Key.objects.get(name=(clean_data['tsig_key'])).algorithm keyring = dns.tsigkeyring.from_text({ key_name : key_data }) dns_update = dns.update.Update(clean_data['rr_domain'], keyring = keyring, keyalgorithm=key_algorithm) - dns_update.replace(str(clean_data['rr_name']), 10, str(clean_data['rr_type']), str(clean_data['rr_data'])) + dns_update.replace(str(clean_data['rr_name']), 86400, str(clean_data['rr_type']), str(clean_data['rr_data'])) try: response = dns.query.tcp(dns_update, clean_data['dns_hostname']) except dns.tsig.PeerBadKey: