Class MXRecord
Mail exchange.
Inherited Members
Namespace: Makaretu.Dns
Assembly: Makaretu.Dns.dll
Syntax
public class MXRecord : ResourceRecord, IWireSerialiser, ICloneable, IPresentationSerialiser
Remarks
MX records cause type A additional section processing for the host specified by EXCHANGE.The use of MX RRs is explained in detail in [RFC-974].
Constructors
| Improve this Doc View SourceMXRecord()
Creates a new instance of the MXRecord class.
Declaration
public MXRecord()
Properties
| Improve this Doc View SourceExchange
A domain-name which specifies a host willing to act as a mail exchange for the owner name.
Declaration
public DomainName Exchange { get; set; }
Property Value
Type | Description |
---|---|
DomainName | The name of an mail exchange. |
Preference
The preference given to this RR among others at the same owner.
Declaration
public ushort Preference { get; set; }
Property Value
Type | Description |
---|---|
UInt16 | Lower values are preferred. |
Methods
| Improve this Doc View SourceReadData(PresentationReader)
Read the textual representation of the data that is specific to the resource record Type.
Declaration
public override void ReadData(PresentationReader reader)
Parameters
Type | Name | Description |
---|---|---|
PresentationReader | reader | The source of the resource record's data. |
Overrides
Remarks
Derived classes must implement this method.
ReadData(WireReader, Int32)
Read the data that is specific to the resource record Type.
Declaration
public override void ReadData(WireReader reader, int length)
Parameters
Type | Name | Description |
---|---|---|
WireReader | reader | The source of the resource record's data. |
Int32 | length | The length, in bytes, of the data. |
Overrides
Remarks
Derived classes must implement this method.
WriteData(PresentationWriter)
Write the textual representation of the data that is specific to the resource record.
Declaration
public override void WriteData(PresentationWriter writer)
Parameters
Type | Name | Description |
---|---|---|
PresentationWriter | writer | The destination for the resource record's data. |
Overrides
Remarks
Derived classes should implement this method.
By default, this will write the hex encoding of the GetData() preceeded by "#" and the number integer bytes.
WriteData(WireWriter)
Write the data that is specific to the resource record Type.
Declaration
public override void WriteData(WireWriter writer)
Parameters
Type | Name | Description |
---|---|---|
WireWriter | writer | The destination for the DNS object's data. |
Overrides
Remarks
Derived classes must implement this method.