DnsKeyRecordCreateSigningKey Method

Creates a new signing key pair

Definition

Namespace: ARSoft.Tools.Net.Dns
Assembly: ARSoft.Tools.Net (in ARSoft.Tools.Net.dll) Version: 3.6.1+aaafdcd61f068318c11734f7b3c59c69371c0549
C#
public static DnsKeyRecord CreateSigningKey(
	DomainName name,
	RecordClass recordClass,
	int timeToLive,
	DnsKeyFlags flags,
	byte protocol,
	DnsSecAlgorithm algorithm,
	int keyStrength = 0
)

Parameters

name  DomainName
The name of the key or zone
recordClass  RecordClass
The record class of the DnsKeyRecord
timeToLive  Int32
The TTL in seconds to the DnsKeyRecord
flags  DnsKeyFlags
The Flags of the DnsKeyRecord
protocol  Byte
The protocol version
algorithm  DnsSecAlgorithm
The key algorithm
keyStrength  Int32  (Optional)
The key strength or 0 for default strength

Return Value

DnsKeyRecord
A new instance of DnsKeyRecord with a new created key pair/>

See Also