2
0
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:
Nicki Křížek 2024-10-08 14:10:50 +02:00 committed by Matthijs Mekking
parent 67957d1f54
commit b5633462bf

View File

@ -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