Table of Contents

Class RecordMx

Namespace
Ubiety.Dns.Core.Records.Mail
Assembly
Ubiety.Dns.Core.dll

Mail exchange DNS record.

public sealed record RecordMx : Record, IEquatable<Record>, IEquatable<RecordMx>
Inheritance
RecordMx
Implements
Inherited Members

Remarks

Standard MX mail DNS record

Constructors

RecordMx(RecordReader)

Initializes a new instance of the RecordMx class.

public RecordMx(RecordReader reader)

Parameters

reader RecordReader

RecordReader for the record data.

Properties

Exchange

Gets the exchange.

public string Exchange { get; }

Property Value

string

Preference

Gets the preference.

public ushort Preference { get; }

Property Value

ushort

Methods

ToString()

Returns a string representation of the mail exchange record.

public override string ToString()

Returns

string

The preference followed by the exchange.

Remarks

Required rather than optional: without it the compiler-generated record ToString prints ResourceRecord, whose own ToString prints this record back, and the pair recurse until the stack is exhausted.