From 23321a8a4c6f3191db29a5cf92ee71c2473ac64a Mon Sep 17 00:00:00 2001 From: Jeffrey Forman Date: Sun, 24 Apr 2011 21:11:27 -0400 Subject: [PATCH] Bump the default TTL from 10 seconds to one day --- binder/bcommon/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: