Answer¶
Answer is a ResourceRecord subtype representing a single resource record found in the answer section of a DNS reply.
Purpose¶
- Provide a distinct type for answer-section resource records so callers can distinguish them from
NameServerandAdditionalRecordentries returned in the sameResponse.
Context¶
- Namespace:
SAIF.Framework.DNS - Assembly/package:
SAIF.BOF.Framework.DNS
Public members¶
Inherits all public members from ResourceRecord (Domain, Type, Class, Ttl, Record) and adds no members of its own.
| Member | Signature | Purpose |
|---|---|---|
| Domain | public string Domain { get; } |
The domain name this record applies to (from ResourceRecord). |
| Type | public DnsType Type { get; } |
The resource-record type (from ResourceRecord). |
| Class | public DnsClass Class { get; } |
The resource-record class (from ResourceRecord). |
| Ttl | public int Ttl { get; } |
The time-to-live, in seconds (from ResourceRecord). |
| Record | public RecordBase Record { get; } |
The decoded RDATA payload (from ResourceRecord). |
Behavioral notes¶
- The class is marked
[Serializable]. Answerhas no public constructor; instances are created internally (internal Answer(Pointer pointer)) while parsing aResponse.Resolver.MXLookupfiltersResponse.Answersto entries whoseRecordis anMXRecord; see BR-008.
Sources¶
- SAIF.Framework.DNS\ResourceRecord.cs