Skip to content

Commit

Permalink
Explain the format of the trusted-keys file. (gh-20)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiuka committed Aug 1, 2014
1 parent 2f1de92 commit 893aca6
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dns/check_dnssec_expiration.c
Expand Up @@ -298,6 +298,9 @@ void print_help (void) {
printf(" File to read trust-anchors from.\n");
print_help_warn_time("2 days");
print_help_crit_time("1 day");

printf("\n");
print_help_ldns_keyfile();
}

/* vim: set ts=4 sw=4 et syn=c : */
3 changes: 3 additions & 0 deletions dns/check_dnssec_trace.c
Expand Up @@ -356,6 +356,9 @@ void print_help (void) {
printf(" The name of the domain to trace from. (default: .)\n");
printf(" -k, --trusted-keys=FILE\n");
printf(" File to read trust-anchors from.\n");

printf("\n");
print_help_ldns_keyfile();
}

/* vim: set ts=4 sw=4 et syn=c : */
5 changes: 5 additions & 0 deletions doc/check_dnssec_expiration.xml
Expand Up @@ -80,6 +80,11 @@
<term><option>--trusted-keys=<replaceable>FILE</replaceable></option></term>
<listitem>
<para>File to read truste-anchors from.</para>
<para>
The keyfile should be a Zonefile alike list of Trusted Keys or DS.
Create the file with 'dig -t <replaceable>DNSKEY|DS</replaceable> +noall +answer <replaceable>ZONE</replaceable> > file'.
Do not forget to verify the DNSKEY/DS record against a trustworthy source.
</para>
</listitem>
</varlistentry>
<varlistentry>
Expand Down
5 changes: 5 additions & 0 deletions doc/check_dnssec_trace.xml
Expand Up @@ -92,6 +92,11 @@
<term><option>--trusted-keys=<replaceable>FILE</replaceable></option></term>
<listitem>
<para>File to read truste-anchors from.</para>
<para>
The keyfile should be a Zonefile alike list of Trusted Keys or DS.
Create the file with 'dig -t <replaceable>DNSKEY|DS</replaceable> +noall +answer <replaceable>ZONE</replaceable> > file'.
Do not forget to verify the DNSKEY/DS record against a trustworthy source.
</para>
</listitem>
</varlistentry>
</variablelist>
Expand Down
9 changes: 9 additions & 0 deletions lib/ldns_utils.c
Expand Up @@ -366,6 +366,15 @@ void print_help_ldns(void) {
printf(" Use TCP for DNS queries.\n");
}

void print_help_ldns_keyfile(void) {
printf(
"Keyfile Format:\n"
" The keyfile should be a Zonefile alike list of Trusted Keys or DS.\n"
" Create the file with 'dig -t <DNSKEY|DS> +noall +answer <ZONE> > file'.\n"
" Do not forget to verify the DNSKEY/DS record against a trustworthy source.\n"
);
}

void print_revision_ldns(void) {
printf(" ldns v%s\n", LDNS_VERSION);
}
Expand Down
5 changes: 5 additions & 0 deletions lib/ldns_utils.h
Expand Up @@ -102,6 +102,11 @@ void getopt_ldns(int c);
*/
void print_help_ldns(void);

/**
* Print the help got the Keyfile format.
*/
void print_help_ldns_keyfile(void);

/**
* Print the ldns revision.
*/
Expand Down

0 comments on commit 893aca6

Please sign in to comment.