> The question is: how to generate the name of a nzf file? > Is there a tool or an easy way?
The code is in lib/dns/view.c if (allow) { char buffer[ISC_SHA256_DIGESTSTRINGLENGTH + sizeof(NZF)]; isc_sha256_data((void *)view->name, strlen(view->name), buffer); /* Truncate the hash at 16 chars; full length is * overkill */ isc_string_printf(buffer + 16, sizeof(NZF), "%s", NZF); view->new_zone_file = isc_mem_strdup(view->mctx, buffer); view->new_zone_config = cfgctx; view->cfg_destroy = cfg_destroy; } Maybe something like this? (Untested) echo -n internal | shasum -a 256 | awk '{printf "%16.16s\n", $1}' -JP _______________________________________________ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users