Report information
The Basics
Id:
21731
Status:
resolved
Priority:
Medium/Medium
Queue:

People
BugTracker
Version Fixed:
9.9.12, 9.10.7, 9.11.3, 9.12.0
Version Found:
9.5.2
Versions Affected:
(no value)
Versions Planned:
(no value)
Priority:
P3 Low
Severity:
S2 Normal
CVSS Score:
(no value)
CVE ID:
(no value)
Component:
(no value)
Area:
(no value)

Dates
Created:Fri, 16 Jul 2010 13:30:53 -0400
Updated:Mon, 14 Aug 2017 06:50:06 -0400
Closed:Mon, 14 Aug 2017 06:50:06 -0400



This bug tracker is no longer active.

Please go to our Gitlab to submit issues (both feature requests and bug reports) for active projects maintained by Internet Systems Consortium (ISC).

Due to security and confidentiality requirements, full access is limited to the primary maintainers.

CC: Tony Finch <dot@dotat.at>
Subject: bogus "file not found" error from dnssec-dsfromkey
Date: Fri, 16 Jul 2010 18:30:39 +0100
To: bind9-bugs@isc.org
From: Tony Finch <dot@dotat.at>
dnssec-dsfromkey incorrectly reports "file not found" if it is given a filename that doesn't end in .key: $ dig +noall +answer dnskey . >root-dnskey $ dnssec-dsfromkey root-dnskey >root-ds dnssec-dsfromkey: fatal: invalid keyfile name root-dnskey: file not found $ mv root-dnskey root-dnskey.key $ dnssec-dsfromkey root-dnskey.key >root-ds $ dnssec-dsfromkey -? Usage: dnssec-dsfromkey options [-K dir] keyfile dnssec-dsfromkey options [-K dir] [-c class] -s dnsname dnssec-dsfromkey options -f zonefile (as zone name) dnssec-dsfromkey options -f zonefile zonename Version: 9.7.1-P2 Options: -v <verbose level> -K <directory>: directory in which to find key file or keyset file -a algorithm: digest algorithm (SHA-1 or SHA-256) -1: use SHA-1 -2: use SHA-256 -l: add lookaside zone and print DLV records -s: read keyset from keyset-<dnsname> file -c class: rdata class for DS set (default: IN) -f file: read keyset from zone file -A: when used with -f, include all keys in DS set, not just KSKs Output: DS or DLV RRs $ Tony. -- f.anthony.n.finch <dot@dotat.at> http://dotat.at/ FAIR ISLE FAEROES: CYCLONIC BECOMING SOUTHWESTERLY 5 TO 7, OCCASIONALLY GALE 8 AT FIRST, DECREASING 4 AT TIMES. MODERATE OR ROUGH, OCCASIONALLY VERY ROUGH AT FIRST. RAIN OR SQUALLY SHOWERS. MODERATE, OCCASIONALLY POOR.
CC: undisclosed-recipients: ;
Subject: Re: [ISC-Bugs #21731] bogus "file not found" error from dnssec-dsfromkey
Date: Fri, 16 Jul 2010 17:50:50 +0000
To: Tony Finch via RT <bind9-bugs@isc.org>
From: Evan Hunt <each@isc.org>
> $ dnssec-dsfromkey root-dnskey >root-ds Try "dnssec-dsfromkey -f root-dnskey . > root-ds"
CC: Tony Finch <dot@dotat.at>
Subject: Re: [ISC-Bugs #21731] bogus "file not found" error from dnssec-dsfromkey
Date: Fri, 16 Jul 2010 19:10:53 +0100
To: Evan Hunt via RT <bind9-bugs@isc.org>
From: Tony Finch <dot@dotat.at>
On Fri, 16 Jul 2010, Evan Hunt via RT wrote: > > $ dnssec-dsfromkey root-dnskey >root-ds > > Try "dnssec-dsfromkey -f root-dnskey . > root-ds" Yes, I know that works :-) The problem is that the error message is incorrect: it claims the file does not exist when it does. Tony. -- f.anthony.n.finch <dot@dotat.at> http://dotat.at/ WIGHT PORTLAND PLYMOUTH NORTH BISCAY: WESTERLY 4 OR 5, OCCASIONALLY 6 AT FIRST. MODERATE OR ROUGH, OCCASIONALLY VERY ROUGH AT FIRST EXCEPT IN WIGHT. SHOWERS. MODERATE OR GOOD.
CC: undisclosed-recipients: ;
Subject: Re: [ISC-Bugs #21731] bogus "file not found" error from dnssec-dsfromkey
Date: Fri, 16 Jul 2010 18:26:02 +0000
To: Tony Finch via RT <bind9-bugs@isc.org>
From: Evan Hunt <each@isc.org>
> Yes, I know that works :-) The problem is that the error message is > incorrect: it claims the file does not exist when it does. Yeah, we can definitely tidy that message up and make it more helpful. But it's not exactly bogus; it's correctly reporting the errno it encountered. If you're not specific enough about your request, it tries different filenames to figure out what you mean, and eventually gives up. The "file not found" refers to "keyset-rootns-dnskey." if I recall correctly.
When keyfile name is provided as a positional parameter, loadkey() uses dst_key_fromnamedfile() to load the keyfile. dst_key_fromnamedfile() always appends ".key" to the provided keyfile name before attempting to load it. I modified the error message printed on failure so that it does not confuse the user and matches the one in loadset(). System test included. Please review rt21731. Assuming positive review, this is a candidate for cherry-picking into all of 9.9, 9.10 and 9.11.
It's fine, okay to commit.
4663. [cleanup] Clarify error message printed by dnssec-dsfromkey. [RT #21731] 9.9.12, 9.10.7, 9.11.3, 9.12.0