Commit 245d9f25 authored by Brian Wellington's avatar Brian Wellington
Browse files

better wildcard warning

parent 87480bb8
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment