DnsAnswer record

Namespace Runic.Platform.Administration.Windows.Dns in Runic.Platform.Administration.Windows 0.23.0

public sealed record DnsAnswer : IEquatable<DnsAnswer>

Inherits or implements IEquatable.

A record of the answer section.

Parameters

Name

The owner name, without a trailing dot. A CNAME chain returns each step with its own owner.

Type

The record type, which can differ from the queried type (a CNAME for an A query).

TimeToLive

The TTL in whole seconds.

Data

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.

Constructors

DnsAnswer

public DnsAnswer(string Name, DnsRecordType Type, TimeSpan TimeToLive, DnsRecordData Data)

A record of the answer section.

Parameters

Name

The owner name, without a trailing dot. A CNAME chain returns each step with its own owner.

Type

The record type, which can differ from the queried type (a CNAME for an A query).

TimeToLive

The TTL in whole seconds.

Data

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.

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.

TimeToLive

public TimeSpan TimeToLive { get; init; }

The TTL in whole seconds.

Type

public DnsRecordType Type { get; init; }

The record type, which can differ from the queried type (a CNAME for an A query).