API Reference
Class
DnsQueryDiagnostics
Shared diagnostics helpers for classifying DNS query failures and suspicious resolver responses.
Inheritance
- Object
- DnsQueryDiagnostics
Methods
public static Boolean HasEnvelopeData(DnsResponse response) #Returns:
BooleanDetermines whether a resolver returned any meaningful envelope data.
Parameters
- response DnsClientX.DnsResponse
- Response to inspect.
Returns
true when at least one response section has data; otherwise false.
public static Boolean IsSuspiciousEmptySuccess(DnsResponse response) #Returns:
BooleanDetects suspicious empty "success" responses where the resolver returned no sections and no truncation signal.
Parameters
- response DnsClientX.DnsResponse
- Response to inspect.
Returns
true when the response looks like an empty success envelope; otherwise false.
IsTransient 2 overloads
public static Boolean IsTransient(DnsResponse response) #Returns:
BooleanDetermines whether the supplied exception represents a transient transport or resolver failure.
Parameters
- exception System.Exception
- Exception to classify.
Returns
true when retry may succeed; otherwise false.
IsTransient(DnsClientX.DnsResponse response) #Determines whether the supplied DNS response should be treated as transient.
Parameters
- response DnsClientX.DnsResponse
- Response to classify.
Returns
true when retry may succeed; otherwise false.