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

    A DnsResourceRecord represending a Well Known Service description.

    Inheritance
    Object
    ResourceRecordInfo
    DnsResourceRecord
    WksRecord
    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
    public class WksRecord : DnsResourceRecord
    Remarks

    Instead of describing the supported protocols in RFCs, the list is now published on http://www.iana.org/.

    Constructors

    | Improve this Doc View Source

    WksRecord(ResourceRecordInfo, IPAddress, Int32, Byte[])

    Initializes a new instance of the WksRecord class.

    Declaration
    public WksRecord(ResourceRecordInfo info, IPAddress address, int protocol, byte[] bitmap)
    Parameters
    Type Name Description
    ResourceRecordInfo info

    The information.

    IPAddress address

    The address.

    Int32 protocol

    The protocol.

    Byte[] bitmap

    The raw data.

    Exceptions
    Type Condition
    ArgumentNullException

    If address or info or bitmap is null.

    Properties

    | Improve this Doc View Source

    Address

    Gets the address.

    Declaration
    public IPAddress Address { get; }
    Property Value
    Type Description
    IPAddress

    The address.

    | Improve this Doc View Source

    Bitmap

    Gets the binary raw bitmap. Use Ports to determine which ports are actually configured.

    Declaration
    public byte[] Bitmap { get; }
    Property Value
    Type Description
    Byte[]
    | Improve this Doc View Source

    Ports

    Gets the list of assigned ports.

    For example, if this list contains port 25, which is assigned to the SMTP service. This means that a SMTP services is running on Address with transport Protocol.

    Declaration
    public int[] Ports { get; }
    Property Value
    Type Description
    Int32[]
    See Also
    Port numbers
    | Improve this Doc View Source

    Protocol

    Gets the Protocol.

    Declaration
    public ProtocolType Protocol { get; }
    Property Value
    Type Description
    ProtocolType
    Remarks

    According to https://tools.ietf.org/html/rfc6335, only ports for TCP, UDP, DCCP and SCTP services will be assigned.

    See Also

    http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
    RFC 3232, the most current update.
    • Improve this Doc
    • View Source
    © 2025 by Michael Conrad. All rights reserved. - MichaCo.net