Give the DS command for a parent zone in Jarl, and allow port 443
The DNSSEC tab and 'jarl zone dnssec status' give the jarl record add command (and an Add to parent button) when the parent zone is in Jarl. jarl.service grants CAP_NET_BIND_SERVICE so the web UI can listen on 443. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
295c549479
commit
113a6913a2
10 files changed
+161
-12
No files matched your search
@@ -384,6 +384,25 @@ contains "removed .*Kadbraun.test"
|
||||
run "dnssec status: clean" 0 $J zone dnssec status adbraun.test --view external
|
||||
contains "Status:.*DNSSEC is off.$"
|
||||
|
||||
# DNSSEC for a zone whose parent is in Jarl: the DS goes in as a record.
|
||||
run "child zone" 0 $J zone create sub.adbraun.test --view external --ns ns1.adbraun.test.
|
||||
run "delegate the child" 0 $J record add adbraun.test sub NS ns1.adbraun.test. --view external
|
||||
run "dnssec enable the child" 0 $J zone dnssec enable sub.adbraun.test --view external
|
||||
for i in $(seq 50); do $J zone dnssec status sub.adbraun.test --view external 2>/dev/null | grep -q "signed serial" && break; sleep 0.2; done
|
||||
run "child status gives the jarl command" 0 $J zone dnssec status sub.adbraun.test --view external
|
||||
contains "in the parent zone adbraun.test, which is in Jarl"
|
||||
contains "jarl record add adbraun.test sub DS [0-9]* 13 2 [0-9A-F]* --view external"
|
||||
DSCMD=$(echo "$OUT" | grep -o "jarl record add adbraun.test sub DS .*")
|
||||
run "the printed command adds the DS" 0 $J ${DSCMD#jarl }
|
||||
run "the parent's zone file has the DS" 0 $J zone file adbraun.test --view external
|
||||
contains "^sub.*IN.DS.$(echo "$DSCMD" | sed 's/.* DS \(.*\) --view.*/\1/')"
|
||||
run "child status: parent has it" 0 $J zone dnssec status sub.adbraun.test --view external
|
||||
contains "adbraun.test has it."
|
||||
run "remove the child's DS" 0 $J record delete adbraun.test sub DS --view external --yes
|
||||
run "wipe the child" 0 $J zone dnssec wipe sub.adbraun.test --view external --yes --force --resolver 127.0.0.1
|
||||
run "delete the child" 0 $J zone delete sub.adbraun.test --view external --yes
|
||||
run "remove the delegation" 0 $J record delete adbraun.test sub NS --view external --yes
|
||||
|
||||
run "status at the end" 0 $J status
|
||||
contains "Drift:.*none"
|
||||
|
||||
|
||||
Reference in new issue
Block a user