]> 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 <each@isc.org>
Wed, 1 Apr 2026 19:29:33 +0000 (12:29 -0700)
commitb8cb65db93a3daeb01f55d157580f492ded066fa
treec241882cd77c4422795a7c73d0cb1796a5e4c119
parent22116110ffa6d5fdf54caaf77749f0dd3e2ab4a6
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`.
bin/dnssec/dnssec-signzone.c
bin/dnssec/dnssec-verify.c