mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
better wildcard warning
This commit is contained in:
@@ -758,12 +758,16 @@ signname(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node,
|
||||
static int warnwild = 0;
|
||||
|
||||
if (dns_name_iswildcard(name)) {
|
||||
if (warnwild++ == 0)
|
||||
fprintf(stderr, "%s: warning: BIND 9 doesn't "
|
||||
"handle wildcards in secure zones\n", PROGRAM);
|
||||
else
|
||||
fprintf(stderr, "%s: warning: wildcard name seen: %s\n",
|
||||
PROGRAM, nametostr(name));
|
||||
if (warnwild++ == 0) {
|
||||
fprintf(stderr, "%s: warning: BIND 9 doesn't properly "
|
||||
"handle wildcards in secure zones:\n", PROGRAM);
|
||||
fprintf(stderr, "\t- wildcard nonexistence proof is "
|
||||
"not generated by the server\n");
|
||||
fprintf(stderr, "\t- wildcard nonexistence proof is "
|
||||
"not required by the resolver\n");
|
||||
}
|
||||
fprintf(stderr, "%s: warning: wildcard name seen: %s\n",
|
||||
PROGRAM, nametostr(name));
|
||||
}
|
||||
if (!atorigin) {
|
||||
dns_rdataset_t nsset;
|
||||
|
@@ -758,12 +758,16 @@ signname(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node,
|
||||
static int warnwild = 0;
|
||||
|
||||
if (dns_name_iswildcard(name)) {
|
||||
if (warnwild++ == 0)
|
||||
fprintf(stderr, "%s: warning: BIND 9 doesn't "
|
||||
"handle wildcards in secure zones\n", PROGRAM);
|
||||
else
|
||||
fprintf(stderr, "%s: warning: wildcard name seen: %s\n",
|
||||
PROGRAM, nametostr(name));
|
||||
if (warnwild++ == 0) {
|
||||
fprintf(stderr, "%s: warning: BIND 9 doesn't properly "
|
||||
"handle wildcards in secure zones:\n", PROGRAM);
|
||||
fprintf(stderr, "\t- wildcard nonexistence proof is "
|
||||
"not generated by the server\n");
|
||||
fprintf(stderr, "\t- wildcard nonexistence proof is "
|
||||
"not required by the resolver\n");
|
||||
}
|
||||
fprintf(stderr, "%s: warning: wildcard name seen: %s\n",
|
||||
PROGRAM, nametostr(name));
|
||||
}
|
||||
if (!atorigin) {
|
||||
dns_rdataset_t nsset;
|
||||
|
Reference in New Issue
Block a user