public sealed record DnsAnswer : IEquatable<DnsAnswer> A record of the answer section.
Parameters
NameThe owner name, without a trailing dot. A CNAME chain returns each step with its own owner.
TypeThe record type, which can differ from the queried type (a CNAME for an A query).
TimeToLiveThe TTL in whole seconds.
DataThe typed data. TXT strings are quoted and separated by spaces, with
"and\escaped by a backslash; types without a typed form areUnsupportedwith the native classTYPEand the number, and empty text.
Constructors
DnsAnswer
public DnsAnswer(string Name, DnsRecordType Type, TimeSpan TimeToLive, DnsRecordData Data) A record of the answer section.
Parameters
NameThe owner name, without a trailing dot. A CNAME chain returns each step with its own owner.
TypeThe record type, which can differ from the queried type (a CNAME for an A query).
TimeToLiveThe TTL in whole seconds.
DataThe typed data. TXT strings are quoted and separated by spaces, with
"and\escaped by a backslash; types without a typed form areUnsupportedwith the native classTYPEand the number, and empty text.
Properties
Data
public DnsRecordData Data { get; init; } The typed data. TXT strings are quoted and separated by spaces, with " and \ escaped by a backslash; types without a typed form are Unsupported with the native class TYPE and the number, and empty text.
Name
public string Name { get; init; } The owner name, without a trailing dot. A CNAME chain returns each step with its own owner.
Type
public DnsRecordType Type { get; init; } The record type, which can differ from the queried type (a CNAME for an A query).