Class DnsQueryResponse
The response returned by any query performed by IDnsQuery with all answer sections, header and message information.
Implements
Inherited Members
Namespace: DnsClient
Assembly: DnsClient.dll
Syntax
public class DnsQueryResponse : IDnsQueryResponse
Properties
| Improve this Doc View SourceAdditionals
Gets a list of additional records.
Declaration
public IReadOnlyList<DnsResourceRecord> Additionals { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<DnsResourceRecord> |
AllRecords
Gets a list of all answers, addtional and authority records.
Declaration
public IEnumerable<DnsResourceRecord> AllRecords { get; }
Property Value
Type | Description |
---|---|
IEnumerable<DnsResourceRecord> |
Answers
Gets a list of answer records.
Declaration
public IReadOnlyList<DnsResourceRecord> Answers { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<DnsResourceRecord> |
AuditTrail
Gets the audit trail if EnableAuditTrail. as set to true
, null
otherwise.
Declaration
public string AuditTrail { get; }
Property Value
Type | Description |
---|---|
String | The audit trail. |
Authorities
Gets a list of authority records.
Declaration
public 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
public string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
String |
HasError
A flag indicating if the header contains a response codde other than NoError.
Declaration
public bool HasError { get; }
Property Value
Type | Description |
---|---|
Boolean |
Header
Gets the header of the response.
Declaration
public DnsResponseHeader Header { get; }
Property Value
Type | Description |
---|---|
DnsResponseHeader |
MessageSize
Gets the size of the message.
Declaration
public int MessageSize { get; }
Property Value
Type | Description |
---|---|
Int32 | The size of the message. |
NameServer
Gets the name server which responded with this result.
Declaration
public NameServer NameServer { get; }
Property Value
Type | Description |
---|---|
NameServer | The name server. |
Questions
Gets the list of questions.
Declaration
public IReadOnlyList<DnsQuestion> Questions { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<DnsQuestion> |
Settings
Gets the settings used to produce this response.
Declaration
public DnsQuerySettings Settings { get; }
Property Value
Type | Description |
---|---|
DnsQuerySettings |
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |