summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd/nsd-checkconf.c
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2018-12-10 16:09:12 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2018-12-10 16:09:12 +0000
commit31d91521357774af37b1ce28f32afb93cd672eb3 (patch)
tree45994efd52c6abf9d3a0c2dba1fc147bcbfff3f8 /usr.sbin/nsd/nsd-checkconf.c
parent4177fb5112f3f803be4d251a9223094ac2d8978d (diff)
Update to 4.1.26
OK sthen
Diffstat (limited to 'usr.sbin/nsd/nsd-checkconf.c')
-rw-r--r--usr.sbin/nsd/nsd-checkconf.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/usr.sbin/nsd/nsd-checkconf.c b/usr.sbin/nsd/nsd-checkconf.c
index f4044c42295..20eb42a8cf1 100644
--- a/usr.sbin/nsd/nsd-checkconf.c
+++ b/usr.sbin/nsd/nsd-checkconf.c
@@ -405,6 +405,16 @@ config_print_zone(nsd_options_type* opt, const char* k, int s, const char *o,
SERV_GET_INT(rrl_ipv6_prefix_length, o);
SERV_GET_INT(rrl_whitelist_ratelimit, o);
#endif
+#ifdef USE_DNSTAP
+ SERV_GET_BIN(dnstap_enable, o);
+ SERV_GET_STR(dnstap_socket_path, o);
+ SERV_GET_BIN(dnstap_send_identity, o);
+ SERV_GET_BIN(dnstap_send_version, o);
+ SERV_GET_STR(dnstap_identity, o);
+ SERV_GET_STR(dnstap_version, o);
+ SERV_GET_BIN(dnstap_log_auth_query_messages, o);
+ SERV_GET_BIN(dnstap_log_auth_response_messages, o);
+#endif
SERV_GET_INT(zonefiles_write, o);
/* remote control */
SERV_GET_BIN(control_enable, o);
@@ -527,6 +537,18 @@ config_test_print_server(nsd_options_type* opt)
printf("\tzonefiles-check: %s\n", opt->zonefiles_check?"yes":"no");
printf("\tzonefiles-write: %d\n", opt->zonefiles_write);
+#ifdef USE_DNSTAP
+ printf("\ndnstap:\n");
+ printf("\tdnstap-enable: %s\n", opt->dnstap_enable?"yes":"no");
+ print_string_var("dnstap-socket-path:", opt->dnstap_socket_path);
+ printf("\tdnstap-send-identity: %s\n", opt->dnstap_send_identity?"yes":"no");
+ printf("\tdnstap-send-version: %s\n", opt->dnstap_send_version?"yes":"no");
+ print_string_var("dnstap-identity:", opt->dnstap_identity);
+ print_string_var("dnstap-version:", opt->dnstap_version);
+ printf("\tdnstap-log-auth-query-messages: %s\n", opt->dnstap_log_auth_query_messages?"yes":"no");
+ printf("\tdnstap-log-auth-response-messages: %s\n", opt->dnstap_log_auth_response_messages?"yes":"no");
+#endif
+
printf("\nremote-control:\n");
printf("\tcontrol-enable: %s\n", opt->control_enable?"yes":"no");
for(ip = opt->control_interface; ip; ip=ip->next)