Class WksRecord
A DnsResourceRecord represending a Well Known Service description.
Inherited Members
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 SourceWksRecord(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 |
Properties
| Improve this Doc View SourceAddress
Gets the address.
Declaration
public IPAddress Address { get; }
Property Value
Type | Description |
---|---|
IPAddress | The address. |
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[] |
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
| Improve this Doc View SourceProtocol
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.