Skip to content

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 NameServer and AdditionalRecord entries returned in the same Response.

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].
  • Answer has no public constructor; instances are created internally (internal Answer(Pointer pointer)) while parsing a Response.
  • Resolver.MXLookup filters Response.Answers to entries whose Record is an MXRecord; see BR-008.

Sources

  • SAIF.Framework.DNS\ResourceRecord.cs