dnst keygen¶
Synopsis¶
dnst keygen [OPTIONS] -a <ALGORITHM> <DOMAIN NAME>
Description¶
dnst keygen generates a new key pair for a given domain name.
The following files will be created:
K<name>+<alg>+<tag>.key: The public key file containing a DNSKEY RR in zone file format.K<name>+<alg>+<tag>.private: The private key file containing the private key data fields in BIND’s Private-key-format.K<name>+<alg>+<tag>.ds: The public key digest file containing the DS RR in zone file format. It is only created for key signing keys.
<name> is the fully-qualified owner name for the key (with a trailing dot).<alg> is the algorithm number of the key, zero-padded to 3 digits.<tag> is the 16-bit tag of the key, zero-padded to 5 digits.Upon completion, K<name>+<alg>+<tag> will be printed.
Arguments¶
- <DOMAIN NAME>¶
The owner name of the apex of the zone which the generated key is intended to sign.
Options¶
- -a <NUMBER OR MNEMONIC>¶
Use the given signing algorithm. Mandatory.
Possible values are:
Mnemonic
Number
Description
listList available algorithms
RSASHA2568
RSA with SHA-256
ECDSAP256SHA25613
ECDSA P-256 with SHA-256
ECDSAP384SHA38414
ECDSA P-384 with SHA-384
ED2551915
ED25519
ED44816
ED448
- -k¶
Generate a key signing key (KSK) instead of a zone signing key (ZSK).
- -b <BITS>¶
The length of the key (for RSA keys only). Defaults to 2048.
- -r <DEVICE>¶
The randomness source to use for generation. Defaults to
/dev/urandom.
- -s¶
Create symlinks
.keyand.privateto the generated keys.
- -f¶
Overwrite existing symlinks (for use with
-s).
- -h, --help¶
Print the help text (short summary with
-h, long help with--help).