mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 13:09:58 -04:00
Print a warning if we see a wildcard in a zone we're signing.
This commit is contained in:
parent
6c4d03a6ab
commit
2e9fe863e1
2 changed files with 16 additions and 0 deletions
|
|
@ -577,7 +577,15 @@ signname(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node,
|
|||
dns_rdataset_t rdataset, nsset;
|
||||
dns_rdatasetiter_t *rdsiter;
|
||||
isc_boolean_t isdelegation = ISC_FALSE;
|
||||
static int warnwild = 0;
|
||||
|
||||
if (dns_name_iswildcard(name)) {
|
||||
fprintf(stderr, "Warning: wildcard name seen: %s\n",
|
||||
nametostr(name));
|
||||
if (warnwild++ == 0)
|
||||
fprintf(stderr, "\tBIND 9 doesn't completely handle "
|
||||
"wildcards in secure zones\n");
|
||||
}
|
||||
if (!atorigin) {
|
||||
dns_rdataset_init(&nsset);
|
||||
result = dns_db_findrdataset(db, node, version,
|
||||
|
|
|
|||
|
|
@ -577,7 +577,15 @@ signname(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node,
|
|||
dns_rdataset_t rdataset, nsset;
|
||||
dns_rdatasetiter_t *rdsiter;
|
||||
isc_boolean_t isdelegation = ISC_FALSE;
|
||||
static int warnwild = 0;
|
||||
|
||||
if (dns_name_iswildcard(name)) {
|
||||
fprintf(stderr, "Warning: wildcard name seen: %s\n",
|
||||
nametostr(name));
|
||||
if (warnwild++ == 0)
|
||||
fprintf(stderr, "\tBIND 9 doesn't completely handle "
|
||||
"wildcards in secure zones\n");
|
||||
}
|
||||
if (!atorigin) {
|
||||
dns_rdataset_init(&nsset);
|
||||
result = dns_db_findrdataset(db, node, version,
|
||||
|
|
|
|||
Loading…
Reference in a new issue