--- subnetmod.c +++ subnetmod.c @@ -239,6 +239,9 @@ return 0; } rep = node->elem; + /* Calculating the ttl from subnetmods tree since we're not storing the data in */ + /* the main tree. */ + rep->ttl = node->ttl - *env->now; rep = reply_info_copy(rep, env->alloc, qstate->region); lock_rw_unlock(&e->lock); qstate->return_msg = (struct dns_msg*)regional_alloc(