Class DSRecord
Delegation Signer.
Inherited Members
Namespace: Makaretu.Dns
Assembly: Makaretu.Dns.dll
Syntax
public class DSRecord : ResourceRecord, IWireSerialiser, ICloneable, IPresentationSerialiser
Remarks
Defined in RFC 4034 section 5.
Constructors
| Improve this Doc View SourceDSRecord()
Creates a new instance of the DSRecord class.
Declaration
public DSRecord()
DSRecord(DNSKEYRecord, Boolean)
Creates a new instance of the DSRecord class from the specified DNSKEYRecord.
Declaration
public DSRecord(DNSKEYRecord key, bool force = false)
Parameters
| Type | Name | Description |
|---|---|---|
| DNSKEYRecord | key | The dns key to use. |
| Boolean | force | If true, key usage checks are ignored. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Both ZoneKey and SecureEntryPoint must be set. |
| ArgumentOutOfRangeException | The Name of the |
Properties
| Improve this Doc View SourceAlgorithm
The SecurityAlgorithm of the referenced DNSKEYRecord.
Declaration
public SecurityAlgorithm Algorithm { get; set; }
Property Value
| Type | Description |
|---|---|
| SecurityAlgorithm |
Digest
The digest of the referenced DNSKEYRecord.
Declaration
public byte[] Digest { get; set; }
Property Value
| Type | Description |
|---|---|
| Byte[] |
Remarks
digest = HashAlgorithm(DNSKEY owner name | DNSKEY RDATA)
HashAlgorithm
The cryptographic hash algorithm used to create the Digest.
Declaration
public DigestType HashAlgorithm { get; set; }
Property Value
| Type | Description |
|---|---|
| DigestType | One of the DigestType value. |
KeyTag
The tag of the referenced DNSKEYRecord.
Declaration
public ushort KeyTag { get; set; }
Property Value
| Type | Description |
|---|---|
| UInt16 |
Methods
| Improve this Doc View SourceReadData(PresentationReader)
Read the textual representation of the data that is specific to the resource record Type.
Declaration
public override void ReadData(PresentationReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| PresentationReader | reader | The source of the resource record's data. |
Overrides
Remarks
Derived classes must implement this method.
ReadData(WireReader, Int32)
Read the data that is specific to the resource record Type.
Declaration
public override void ReadData(WireReader reader, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| WireReader | reader | The source of the resource record's data. |
| Int32 | length | The length, in bytes, of the data. |
Overrides
Remarks
Derived classes must implement this method.
WriteData(PresentationWriter)
Write the textual representation of the data that is specific to the resource record.
Declaration
public override void WriteData(PresentationWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| PresentationWriter | writer | The destination for the resource record's data. |
Overrides
Remarks
Derived classes should implement this method.
By default, this will write the hex encoding of the GetData() preceeded by "#" and the number integer bytes.
WriteData(WireWriter)
Write the data that is specific to the resource record Type.
Declaration
public override void WriteData(WireWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| WireWriter | writer | The destination for the DNS object's data. |
Overrides
Remarks
Derived classes must implement this method.