Bump the default TTL from 10 seconds to one day

This commit is contained in:
Jeffrey Forman 2011-04-24 21:11:27 -04:00
parent 5523e79ded
commit 23321a8a4c
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ def add_record(clean_data):
key_algorithm = Key.objects.get(name=(clean_data['tsig_key'])).algorithm key_algorithm = Key.objects.get(name=(clean_data['tsig_key'])).algorithm
keyring = dns.tsigkeyring.from_text({ key_name : key_data }) 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 = 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: try:
response = dns.query.tcp(dns_update, clean_data['dns_hostname']) response = dns.query.tcp(dns_update, clean_data['dns_hostname'])
except dns.tsig.PeerBadKey: except dns.tsig.PeerBadKey: