diff --git a/doc/Changelog b/doc/Changelog index 082e2b7f0..fdbcf4b6e 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -2,6 +2,7 @@ - Fix #1270: unitauth.c doesn't compile with higher warning level and optimization - exec_prefix is by default equal to prefix. + - printout localzone for duplicate local-zone warnings. 24 May 2017: Wouter - authzone cname chain, no rrset duplicates, wildcard doesn't change diff --git a/services/localzone.c b/services/localzone.c index dcce46e86..9b83081d1 100644 --- a/services/localzone.c +++ b/services/localzone.c @@ -187,7 +187,9 @@ lz_enter_zone_dname(struct local_zones* zones, uint8_t* nm, size_t len, lock_rw_wrlock(&z->lock); if(!rbtree_insert(&zones->ztree, &z->node)) { struct local_zone* oldz; - log_warn("duplicate local-zone"); + char str[256]; + dname_str(nm, str); + log_warn("duplicate local-zone %s", str); lock_rw_unlock(&z->lock); /* save zone name locally before deallocation, * otherwise, nm is gone if we zone_delete now. */