• 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 SrvRecord

    A DnsResourceRecord represending a location of the server(s) for a specific protocol and domain.

    Inheritance
    Object
    ResourceRecordInfo
    DnsResourceRecord
    SrvRecord
    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 SrvRecord : DnsResourceRecord

    Constructors

    | Improve this Doc View Source

    SrvRecord(ResourceRecordInfo, UInt16, UInt16, UInt16, DnsString)

    Initializes a new instance of the SrvRecord class.

    Declaration
    public SrvRecord(ResourceRecordInfo info, ushort priority, ushort weigth, ushort port, DnsString target)
    Parameters
    Type Name Description
    ResourceRecordInfo info

    The information.

    UInt16 priority

    The priority.

    UInt16 weigth

    The weigth.

    UInt16 port

    The port.

    DnsString target

    The target.

    Exceptions
    Type Condition
    ArgumentNullException

    If info or target is null.

    Properties

    | Improve this Doc View Source

    Port

    Gets the port.

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

    The port.

    | Improve this Doc View Source

    Priority

    Gets the priority.

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

    The priority.

    | Improve this Doc View Source

    Target

    Gets the target domain name.

    Declaration
    public DnsString Target { get; }
    Property Value
    Type Description
    DnsString

    The target.

    | Improve this Doc View Source

    Weight

    Gets the weight.

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

    The weight.

    See Also

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