2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

3908. [bug] rndc now differentiates between a zone in multiple

views and a zone that doesn't exist at all. [RT #36691]
This commit is contained in:
Mark Andrews
2014-08-02 14:43:26 +10:00
parent 323bb31d7c
commit c38341ec43
9 changed files with 51 additions and 15 deletions

View File

@@ -7149,6 +7149,10 @@ zone_from_args(ns_server_t *server, char *args, const char *zonetxt,
snprintf(problem, sizeof(problem),
"no matching zone '%s' in any view",
zonetxt);
else if (result == ISC_R_MULTIPLE)
snprintf(problem, sizeof(problem),
"zone '%s' was found in multiple views",
zonetxt);
} else {
result = dns_viewlist_find(&server->viewlist, viewtxt,
rdclass, &view);