seems to work now
This commit is contained in:
@ -5,6 +5,7 @@ import dns.rdataclass
|
||||
import dns.rdatatype
|
||||
import dns.rdtypes.IN.A
|
||||
import dns.tsigkeyring
|
||||
from dns.tsig import HMAC_SHA256
|
||||
import dns.rcode
|
||||
import threading
|
||||
import time
|
||||
@ -52,7 +53,7 @@ class DnsHandler(threading.Thread):
|
||||
return
|
||||
# send A-RR insertion for ip to DNS server
|
||||
rr = dns.rdtypes.IN.A.A(dns.rdataclass.IN, dns.rdatatype.A, address)
|
||||
u = dns.update.Update(zone, keyring=self.keyring)
|
||||
u = dns.update.Update(zone, keyring=self.keyring, keyalgorithm=HMAC_SHA256)
|
||||
u.add(name, self.ttl, rr)
|
||||
r = dns.query.tcp(u, self.nsAddress, port=self.nsPort)
|
||||
|
||||
@ -65,7 +66,7 @@ class DnsHandler(threading.Thread):
|
||||
if self.dnsDummy:
|
||||
return
|
||||
# send A-RR deletion for ip to DNS server
|
||||
u = dns.update.Update(zone, keyring=self.keyring)
|
||||
u = dns.update.Update(zone, keyring=self.keyring, keyalgorithm=HMAC_SHA256)
|
||||
u.delete(name)
|
||||
r = dns.query.tcp(u, self.nsAddress, port=self.nsPort)
|
||||
|
||||
|
Reference in New Issue
Block a user