]> git.ipfire.org Git - thirdparty/bind9.git/commit
use the zone file's basename as origin in dnssec tools
authorEvan Hunt <each@isc.org>
Wed, 10 Dec 2025 00:52:44 +0000 (16:52 -0800)
committerEvan Hunt (GitLab job 7135405) <each@isc.org>
Wed, 1 Apr 2026 20:48:09 +0000 (20:48 +0000)
commit96da8560184a7252e0938edf9b0e2cd1ff473cb9
tree5ca5e0bc0a3787e6a46e2e069334e0325613e354
parentb370aacc2d3dd22e0e87a6bf9d4788c308bfe9ea
use the zone file's basename as origin in dnssec tools

In dnssec-signzone and dnssec-verify, if the zone origin is not
specified using the `-o` parameter, the default behavior is to try
to use the zone's file name as the origin. So, for example,
`dnssec-signzone -S example.com` or 'dnssec-verify example.com'
will work, so long as the file name matches the zone name.

This now also works if the zone is in a different directory.
For example, `dnssec-signzone -S zones/example.com` or
'dnssec-verify zones/example.com' will set the origin value
to `example.com`.

(cherry picked from commit b8cb65db93a3daeb01f55d157580f492ded066fa)
bin/dnssec/dnssec-signzone.c
bin/dnssec/dnssec-verify.c