Interface IDnsAnswerSource
- Namespace
- Kuestenlogik.Bowire.Security.Scanner
- Assembly
- Kuestenlogik.Bowire.Security.Scanner.dll
The seam between the scan loop and a real resolver. Exists so the DNS
branch of bowire scan can be tested against fixed answers: a
test that has to reach a live nameserver tests the network, and the
thing worth pinning here is the translation from answer to verdict.
public interface IDnsAnswerSource
Methods
QueryAsync(string, string, CancellationToken)
Task<DnsProbeAnswer> QueryAsync(string name, string recordType, CancellationToken ct)
Parameters
namestringFully-qualified name to resolve.
recordTypestringA / AAAA / CNAME / TXT / MX / NS / SOA / PTR / …
ctCancellationTokenCancels the in-flight query.