mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
Remove unused isctest/kasp code
This commit is contained in:
parent
67957d1f54
commit
b5633462bf
@ -26,12 +26,7 @@ import isctest.log
|
||||
DEFAULT_TTL = 300
|
||||
|
||||
|
||||
def _save_response(response, fname):
|
||||
with open(fname, "w", encoding="utf-8") as file:
|
||||
file.write(response.to_text())
|
||||
|
||||
|
||||
def _query(server, qname, qtype, outfile=None):
|
||||
def _query(server, qname, qtype):
|
||||
query = dns.message.make_query(qname, qtype, use_edns=True, want_dnssec=True)
|
||||
try:
|
||||
response = dns.query.tcp(query, server.ip, port=server.ports.dns, timeout=3)
|
||||
@ -39,9 +34,6 @@ def _query(server, qname, qtype, outfile=None):
|
||||
isctest.log.debug(f"query timeout for query {qname} {qtype} to {server.ip}")
|
||||
return None
|
||||
|
||||
if outfile is not None:
|
||||
_save_response(response, outfile)
|
||||
|
||||
return response
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user