Class DnsMxResource
Represents a mail server DNS record. See MX.
Namespace: Ae.Dns.Protocol.Records
Assembly: Ae.Dns.Protocol.dll
Syntax
public sealed class DnsMxResource : DnsStringResource, IDnsResource, IDnsByteArrayWriter, IEquatable<DnsStringResource>, IEquatable<DnsMxResource>
Properties
| Improve this Doc View SourceCanUseCompression
Describes whether this string resource can use string compression.
Declaration
protected override bool CanUseCompression { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceExchange
The domain name of a mailserver.
Declaration
public string Exchange { get; }
Property Value
Type | Description |
---|---|
String | The host name must map directly to one or more address records (A, or AAAA) in the DNS, and must not point to any CNAME records. |
Preference
The priority or preference field identifies which mailserver should be preferred.
Declaration
public ushort Preference { get; set; }
Property Value
Type | Description |
---|---|
UInt16 | The priority field identifies which mailserver should be preferred - if multiple values are the same, mail would be expected to flow evenly to all hosts. |
Methods
| Improve this Doc View SourceEquals(DnsMxResource)
Declaration
public bool Equals(DnsMxResource other)
Parameters
Type | Name | Description |
---|---|---|
DnsMxResource | other |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
| Improve this Doc View SourceReadBytes(ReadOnlyMemory<Byte>, ref Int32, Int32)
Read from the specified byte array, starting at the specified offset.
Declaration
public override void ReadBytes(ReadOnlyMemory<byte> bytes, ref int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlyMemory<Byte> | bytes | The byte array to read from. |
Int32 | offset | The offset to start at. |
Int32 | length | The maximum number of bytes to read. |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
WriteBytes(Memory<Byte>, ref Int32)
Write to the the specified byte array.
Declaration
public override void WriteBytes(Memory<byte> bytes, ref int offset)
Parameters
Type | Name | Description |
---|---|---|
Memory<Byte> | bytes | The byte array to read from. |
Int32 | offset | The offset to start at. |