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

name string

Fully-qualified name to resolve.

recordType string

A / AAAA / CNAME / TXT / MX / NS / SOA / PTR / …

ct CancellationToken

Cancels the in-flight query.

Returns

Task<DnsProbeAnswer>