Skip to content

Commit 1b90fc1

Browse files
authored
Various man page updates and consistency tweaks. (#84)
1 parent e566196 commit 1b90fc1

File tree

10 files changed

+71
-28
lines changed

10 files changed

+71
-28
lines changed

doc/manual/source/man/dnst-key2ds.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ Description
1414
The following file will be created for each key: ``K<name>+<alg>+<id>.ds``. The
1515
base name ``K<name>+<alg>+<id>`` will be printed to stdout.
1616

17+
Arguments
18+
---------
19+
20+
.. option:: <KEYFILE>
21+
22+
``<KEYFILE>`` must be a file containing one or more RFC 4034 ``DNSKEY``
23+
resource records in presentation format.
1724

1825
Options
1926
-------

doc/manual/source/man/dnst-keygen.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,20 @@ The following files will be created:
2828
2929
Upon completion, ``K<name>+<alg>+<tag>`` will be printed.
3030

31+
Arguments
32+
---------
33+
34+
.. option:: <DOMAIN NAME>
35+
36+
The owner name of the apex of the zone which the generated key is
37+
intended to sign.
38+
3139
Options
3240
-------
3341

3442
.. option:: -a <NUMBER OR MNEMONIC>
3543

36-
Use the given signing algorithm.
44+
Use the given signing algorithm. Mandatory.
3745

3846
Possible values are:
3947

doc/manual/source/man/dnst-notify.rst

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,32 @@ Synopsis
99
Description
1010
-----------
1111

12-
**dnst notify** sends a NOTIFY message to the specified name servers. A name
13-
server can be specified as a domain name or IP address.
12+
**dnst notify** sends a NOTIFY message to the specified name servers.
1413

1514
This tells them that an updated zone is available at the primaries. It can
1615
perform TSIG signatures, and it can add a SOA serial number of the updated
1716
zone. If a server already has that serial number it will disregard the message.
1817

18+
Arguments
19+
---------
20+
21+
.. option:: <SERVERS>...
22+
23+
One or more name servers to which NOTIFY messages will be sent, by
24+
default on port 53.
25+
26+
Each name server can be specified as a domain name or IP address.
27+
1928
Options
2029
-------
2130

2231
.. option:: -z <ZONE>
2332

24-
The zone to send the NOTIFY for.
33+
The zone to send the NOTIFY for. Mandatory.
34+
35+
.. option:: -I <ADDRESS>
36+
37+
Source IP to send the message from.
2538

2639
.. option:: -I <ADDRESS>
2740

doc/manual/source/man/dnst-nsec3-hash.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ Description
1111

1212
**dnst nsec3-hash** prints the NSEC3 hash of a given domain name.
1313

14+
Arguments
15+
---------
16+
17+
.. option:: <DOMAIN NAME>
18+
19+
The domain name to generate an NSEC3 hash for.
20+
1421
Options
1522
-------
1623

doc/manual/source/man/dnst-signzone.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ dnst signzone
44
Synopsis
55
--------
66

7-
:program:`dnst signzone` ``[OPTIONS]`` ``<ZONEFILE>`` ``<KEY>...``
7+
:program:`dnst signzone` ``[OPTIONS]`` ``-o <ORIGIN>`` ``<ZONEFILE>`` ``<KEY>...``
88

99
Description
1010
-----------
1111

1212
**dnst signzone** signs the zonefile with the given key(s).
1313

14+
Signing a zone adds DNS Security Extensions (DNSSEC) resource records
15+
1416
Keys must be specified by their base name (usually ``K<name>+<alg>+<id>``),
1517
i.e. WITHOUT the ``.private`` or ``.key`` extension. Both ``.private`` and
1618
``.key`` files are required.
@@ -51,7 +53,7 @@ Options
5153

5254
.. option:: -o <DOMAIN>
5355

54-
Set the origin for the zone. Mandatory.
56+
Use this owner name as the apex of the zone. Mandatory.
5557

5658
.. option:: -u
5759

doc/manual/source/man/dnst-update.rst

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,43 @@ Synopsis
1010
Description
1111
-----------
1212

13-
**dnst update** sends a dynamic update packet to update an IP (or delete all
14-
existing IPs) for a domain name.
13+
**dnst update** sends an RFC 2136 Dynamic Update message to the name servers
14+
for a zone to update an IP address (or delete all existing IP addresses) for a
15+
domain name.
16+
17+
The message to be sent can be optionally authenticated using a given TSIG key.
1518

1619
Arguments
1720
---------
1821

1922
.. option:: <DOMAIN NAME>
2023

21-
The domain name to update the IP address of
24+
The domain name to update the IP address of.
2225

2326
.. option:: <ZONE>
2427

25-
The zone to send the update to (if omitted, derived from SOA record)
28+
The zone to send the update to (if omitted, derived from SOA record).
2629

2730
.. option:: <IP>
2831

29-
The IP to update the domain with (``none`` to remove any existing IPs)
32+
The IP address to update the domain with (``none`` to remove any
33+
existing IP addresses)
3034

3135
.. option:: <TSIG KEY NAME>
3236

33-
TSIG key name
37+
TSIG key name.
3438

3539
.. option:: <TSIG ALGORITHM>
3640

37-
TSIG algorithm (e.g. "hmac-sha256")
41+
TSIG algorithm (e.g. "hmac-sha256").
3842

3943
.. option:: <TSIG KEY DATA>
4044

4145
Base64 encoded TSIG key data.
4246

47+
Options:
48+
--------
49+
4350
.. option:: -h, --help
4451

4552
Print the help text (short summary with ``-h``, long help with

doc/manual/source/man/ldns-key2ds.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ It prints out the basename for this file (``K<name>+<alg>+<id>``).
1818
By default, it takes a pick of algorithm similar to the key algorithm,
1919
SHA1 for RSASHA1, and so on.
2020

21-
2221
Options
2322
-------
2423

doc/manual/source/man/ldns-keygen.rst

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,13 @@ Synopsis
99
Description
1010
-----------
1111

12-
**ldns-keygen** is used to generate a private/public keypair. When run, it will
13-
create 3 files; a ``.key`` file with the public DNSKEY, a ``.private`` file
14-
with the private keydata and a ``.ds`` file with the DS record of the DNSKEY
15-
record.
12+
**ldns-keygen** is used to generate a private/public keypair.
1613

17-
.. **ldns-keygen** can also be used to create symmetric keys (for TSIG) by
18-
.. selecting the appropriate algorithm: hmac-md5.sig-alg.reg.int, hmac-sha1,
19-
.. hmac-sha224, hmac-sha256, hmac-sha384 or hmac-sha512. In that case no DS record
20-
.. will be created and no .ds file.
14+
When run, it will create 3 files; a ``.key`` file with the public DNSKEY, a
15+
``.private`` file with the private keydata and a ``.ds`` file with the DS
16+
record of the DNSKEY record.
2117

22-
ldns-keygen prints the basename for the key files: ``K<name>+<alg>+<id>``
18+
**ldns-keygen** prints the basename for the key files: ``K<name>+<alg>+<id>``
2319

2420
Options
2521
-------
@@ -31,6 +27,9 @@ Options
3127
versions and other software), the list gives names from the RFC. Also the
3228
plain algorithm number is accepted.
3329

30+
Note: Unlike the original LDNS, this implementation does not support
31+
creation of symmetric keys (for TSIG).
32+
3433
.. option:: -b <BITS>
3534

3635
Use this many bits for the key length.

doc/manual/source/man/ldns-notify.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ Options
5757
.. option:: -v
5858

5959
Print the version and exit.
60-

doc/manual/source/man/ldns-signzone.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Arguments
4747
Note: Unlike the original LDNS:
4848
- Public keys corresponding to ``.private`` key MUST be supplied,
4949
either as DNSKEY RRs in the given zone or as ``.key`` files. This
50-
Implementation is not able to generate missing public keys.
50+
implementation is not able to generate missing public keys.
5151
- Supported DNSKEY algorithms are the ones supported by the
5252
domain crate. Supported algorithms include RSASHA256,
5353
ECDSAP256SHA256, and ED25519 but exclude RSHASHA1 and
@@ -113,13 +113,15 @@ Options
113113

114114
.. option:: -o <DOMAIN>
115115

116-
Use this as the origin for the zone (only necessary for zonefiles with
117-
relative names and no $ORIGIN).
116+
Use this owner name as the apex of the zone.
117+
118+
If not specified the owner name of the first SOA record will be used as
119+
the apex of the zone.
118120

119121
.. option:: -u
120122

121123
Set the SOA serial in the resulting zonefile to the given number of
122-
seconds since Jan 1st 1970.
124+
seconds since January 1st 1970.
123125

124126
.. option:: -u
125127

0 commit comments

Comments
 (0)