• DnsClient
  • Readme
  • Api Docs
  • MichaCo.net
This site uses "cookies" - small data files stored locally on your computer - to save information about your preferences when using this site. Learn More.

    Show / Hide Table of Contents

    Class MxRecord

    A DnsResourceRecord represending a mail exchange.

    Inheritance
    Object
    ResourceRecordInfo
    DnsResourceRecord
    MxRecord
    Inherited Members
    DnsResourceRecord.ToString()
    DnsResourceRecord.ToString(Int32)
    ResourceRecordInfo.DomainName
    ResourceRecordInfo.RecordType
    ResourceRecordInfo.RecordClass
    ResourceRecordInfo.TimeToLive
    ResourceRecordInfo.InitialTimeToLive
    ResourceRecordInfo.RawDataLength
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: DnsClient.Protocol
    Assembly: DnsClient.dll
    Syntax
    [CLSCompliant(false)]
    public class MxRecord : DnsResourceRecord

    Constructors

    | Improve this Doc View Source

    MxRecord(ResourceRecordInfo, UInt16, DnsString)

    Initializes a new instance of the MxRecord class.

    Declaration
    public MxRecord(ResourceRecordInfo info, ushort preference, DnsString domainName)
    Parameters
    Type Name Description
    ResourceRecordInfo info

    The information.

    UInt16 preference

    The preference.

    DnsString domainName

    Name of the domain.

    Exceptions
    Type Condition
    ArgumentNullException

    If domainName or info is null.

    Properties

    | Improve this Doc View Source

    Exchange

    A domain name which specifies a host willing to act as a mail exchange.

    Declaration
    public DnsString Exchange { get; }
    Property Value
    Type Description
    DnsString
    | Improve this Doc View Source

    Preference

    Gets a 16 bit integer which specifies the preference given to this RR among others at the same owner. Lower values are preferred.

    Declaration
    public ushort Preference { get; }
    Property Value
    Type Description
    UInt16

    See Also

    RFC 1035
    RFC 974
    • Improve this Doc
    • View Source
    © 2025 by Michael Conrad. All rights reserved. - MichaCo.net