}
static void
-logkey(dns_rdata_t *rdata)
-{
+logkey(dns_rdata_t *rdata) {
isc_result_t result;
dst_key_t *key = NULL;
isc_buffer_t buf;
}
static void
-emit(dns_dsdigest_t dt, bool showall, char *lookaside,
- bool cds, dns_rdata_t *rdata)
-{
+emit(dns_dsdigest_t dt, bool showall, bool cds, dns_rdata_t *rdata) {
isc_result_t result;
unsigned char buf[DNS_DS_BUFFERSIZE];
char text_buf[DST_KEY_MAXTEXTSIZE];
if (result != ISC_R_SUCCESS)
fatal("can't print name");
- /* Add lookaside origin, if set */
- if (lookaside != NULL) {
- if (isc_buffer_availablelength(&nameb) < strlen(lookaside))
- fatal("DLV origin '%s' is too long", lookaside);
- isc_buffer_putstr(&nameb, lookaside);
- if (lookaside[strlen(lookaside) - 1] != '.') {
- if (isc_buffer_availablelength(&nameb) < 1)
- fatal("DLV origin '%s' is too long", lookaside);
- isc_buffer_putstr(&nameb, ".");
- }
- }
-
result = dns_rdata_tofmttext(&ds, (dns_name_t *) NULL, 0, 0, 0, "",
&textb);
isc_buffer_usedregion(&classb, &r);
printf("%.*s", (int)r.length, r.base);
- if (lookaside == NULL) {
- if (cds)
- printf(" CDS ");
- else
- printf(" DS ");
- } else
- printf(" DLV ");
+ if (cds) {
+ printf(" CDS ");
+ } else {
+ printf(" DS ");
+ }
isc_buffer_usedregion(&textb, &r);
printf("%.*s\n", (int)r.length, r.base);
}
static void
-emits(bool showall, char *lookaside, bool cds, dns_rdata_t *rdata) {
+emits(bool showall, bool cds, dns_rdata_t *rdata) {
unsigned i, n;
n = sizeof(dtype)/sizeof(dtype[0]);
for (i = 0; i < n; i++) {
if (dtype[i] != 0) {
- emit(dtype[i], showall, lookaside, cds, rdata);
+ emit(dtype[i], showall, cds, rdata);
}
}
}
" -f zonefile: read keys from a zone file\n"
" -h: print help information\n"
" -K directory: where to find key or keyset files\n"
-" -l zone: print DLV records in the given lookaside zone\n"
" -s: read keys from keyset-<dnsname> file\n"
" -T: TTL of output records (omitted by default)\n"
" -v level: verbosity\n"
" -V: print version information\n");
- fprintf(stderr, "Output: DS, DLV, or CDS RRs\n");
+ fprintf(stderr, "Output: DS or CDS RRs\n");
exit (-1);
}
main(int argc, char **argv) {
char *classname = NULL;
char *filename = NULL, *dir = NULL, *namestr;
- char *lookaside = NULL;
char *endp;
int ch;
bool cds = false;
add_dtype(strtodsdigest(isc_commandline_argument));
break;
case 'C':
- if (lookaside != NULL)
- fatal("lookaside and CDS are mutually"
- " exclusive");
cds = true;
break;
case 'c':
filename = isc_commandline_argument;
break;
case 'l':
- if (cds)
- fatal("lookaside and CDS are mutually"
- " exclusive");
- lookaside = isc_commandline_argument;
- if (strlen(lookaside) == 0U)
- fatal("lookaside must be a non-empty string");
+ fatal("-l option (DLV lookaside) is obsolete");
break;
case 's':
usekeyset = true;
logkey(&rdata);
}
- emits(showall, lookaside, cds, &rdata);
+ emits(showall, cds, &rdata);
}
} else {
unsigned char key_buf[DST_KEY_MAXSIZE];
loadkey(argv[isc_commandline_index], key_buf,
DST_KEY_MAXSIZE, &rdata);
- emits(showall, lookaside, cds, &rdata);
+ emits(showall, cds, &rdata);
}
if (dns_rdataset_isassociated(&rdataset)) {
<para>
The <command>dnssec-dsfromkey</command> command outputs DS (Delegation
- Signer) resource records (RRs) and other similarly-constructed RRs:
- with the <option>-l</option> option it outputs DLV (DNSSEC Lookaside
- Validation) RRs; or with the <option>-C</option> it outputs CDS (Child
- DS) RRs.
+ Signer) resource records (RRs), or CDS (Child DS) RRs with the
+ <option>-C</option> option.
</para>
<para>
<term>-C</term>
<listitem>
<para>
- Generate CDS records rather than DS records. This is mutually
- exclusive with the <option>-l</option> option for generating DLV
- records.
+ Generate CDS records rather than DS records.
</para>
</listitem>
</varlistentry>
</listitem>
</varlistentry>
- <varlistentry>
- <term>-l <replaceable class="parameter">domain</replaceable></term>
- <listitem>
- <para>
- Generate a DLV set instead of a DS set. The specified
- <replaceable>domain</replaceable> is appended to the name for each
- record in the set.
- This is mutually exclusive with the <option>-C</option> option
- for generating CDS records.
- </para>
- </listitem>
- </varlistentry>
-
<varlistentry>
<term>-s</term>
<listitem>
</citerefentry>,
<citetitle>BIND 9 Administrator Reference Manual</citetitle>,
<citetitle>RFC 3658</citetitle> (DS RRs),
- <citetitle>RFC 4431</citetitle> (DLV RRs),
<citetitle>RFC 4509</citetitle> (SHA-256 for DS RRs),
<citetitle>RFC 6605</citetitle> (SHA-384 for DS RRs),
<citetitle>RFC 7344</citetitle> (CDS and CDNSKEY RRs).