Bump the default TTL from 10 seconds to one day
This commit is contained in:
parent
5523e79ded
commit
23321a8a4c
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue