mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 00:40:00 -04:00
Add a system test which ensures, whenever the DS record can't be found in the local cache, that the resolver first tries to get the parent NS from the delegation cache to ask them the DS record, directly, rather than running the fallback flow where the resolver attempts to query the DS record from NS of the validating name (which would fails, then the resolver would remove one label and fetch again, fails, and so on until it reach the closest zonecut). The test relies on the fact that when the fallback flow is run, the `rctx_chaseds()` function is run, adding the "chase DS servers ..." and "suspending DS lookup to find parent's..." logs.
19 lines
511 B
Bash
19 lines
511 B
Bash
#!/bin/sh -e
|
|
|
|
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
|
#
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
|
#
|
|
# See the COPYRIGHT file distributed with this work for additional
|
|
# information regarding copyright ownership.
|
|
|
|
# shellcheck source=conf.sh
|
|
. ../conf.sh
|
|
|
|
set -e
|
|
|
|
cd ns1 && $SHELL sign.sh && cd ..
|