Interface IDnsQueryResponse
Contract defining the result of a query performed by IDnsQuery.
Namespace: DnsClient
Assembly: DnsClient.dll
Syntax
public interface IDnsQueryResponse
Properties
| Improve this Doc View SourceAdditionals
Gets a list of additional records.
Declaration
IReadOnlyList<DnsResourceRecord> Additionals { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<DnsResourceRecord> |
AllRecords
Gets a list of all answers, addtional and authority records.
Declaration
IEnumerable<DnsResourceRecord> AllRecords { get; }
Property Value
Type | Description |
---|---|
IEnumerable<DnsResourceRecord> |
Answers
Gets a list of answer records.
Declaration
IReadOnlyList<DnsResourceRecord> Answers { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<DnsResourceRecord> |
AuditTrail
Gets the audit trail if EnableAuditTrail. as set to true
, null
otherwise.
Declaration
string AuditTrail { get; }
Property Value
Type | Description |
---|---|
String | The audit trail. |
Authorities
Gets a list of authority records.
Declaration
IReadOnlyList<DnsResourceRecord> Authorities { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<DnsResourceRecord> |
ErrorMessage
Returns a string value representing the error response code in case an error occured, otherwise 'NoError'.
Declaration
string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
String |
HasError
A flag indicating if the header contains a response codde other than NoError.
Declaration
bool HasError { get; }
Property Value
Type | Description |
---|---|
Boolean |
Header
Gets the header of the response.
Declaration
DnsResponseHeader Header { get; }
Property Value
Type | Description |
---|---|
DnsResponseHeader |
MessageSize
Gets the size of the message.
Declaration
int MessageSize { get; }
Property Value
Type | Description |
---|---|
Int32 | The size of the message. |
NameServer
Gets the name server which responded with this result.
Declaration
NameServer NameServer { get; }
Property Value
Type | Description |
---|---|
NameServer | The name server. |
Questions
Gets the list of questions.
Declaration
IReadOnlyList<DnsQuestion> Questions { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<DnsQuestion> |
Settings
Gets the settings used to produce this response.
Declaration
DnsQuerySettings Settings { get; }
Property Value
Type | Description |
---|---|
DnsQuerySettings |