2
0
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:
Brian Wellington
2000-05-18 17:14:35 +00:00
parent 87480bb860
commit 245d9f25a7
2 changed files with 20 additions and 12 deletions

View File

@@ -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;

View File

@@ -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;