summaryrefslogtreecommitdiffstats
path: root/net/nsd/CONFIGURE
diff options
context:
space:
mode:
Diffstat (limited to 'net/nsd/CONFIGURE')
-rwxr-xr-xnet/nsd/CONFIGURE39
1 files changed, 39 insertions, 0 deletions
diff --git a/net/nsd/CONFIGURE b/net/nsd/CONFIGURE
new file mode 100755
index 0000000000..4595c117f9
--- /dev/null
+++ b/net/nsd/CONFIGURE
@@ -0,0 +1,39 @@
+config_query_option NSD_OPTS "Configure NSD as a root server?" n \
+ "--enable-root-server" \
+ "--disable-root-server" &&
+
+config_query_option NSD_OPTS "Enable IPv6 support?" y \
+ "--enable-ipv6" \
+ "--disable-ipv6" &&
+
+config_query_option NSD_OPTS "Enable BIND8-like NSTATS & XSTATS?" n \
+ "--enable-bind8-stats" \
+ "--disable-bind8-stats" &&
+
+config_query_option NSD_OPTS "Enable rate limiting?" n \
+ "--enable-ratelimit" \
+ "--disable-ratelimit" &&
+
+config_query_option NSD_OPTS "Enable NSEC3 support?" y \
+ "--enable-nsec3" \
+ "--disable-nsec3" &&
+
+if list_find "$NSD_OPTS" "--enable-nsec3"; then
+ config_query_option NSD_OPTS "Enable NSEC3 full prehashing?" y \
+ "--enable-full-prehash" \
+ "--disable-full-prehash"
+else
+ list_add "NSD_OPTS" "--disable-full-prehash"
+fi &&
+
+config_query_option NSD_OPTS "Enable response minimization (less truncation)?" y \
+ "--enable-minimal-responses" \
+ "--disable-minimal-responses" &&
+
+config_query_option NSD_OPTS "Use mmap instead of malloc (${PROBLEM_COLOR}Experimental${QUERY_COLOR})?" n \
+ "--enable-mmap" \
+ "--disable-mmap" &&
+
+config_query_option NSD_OPTS "Maintain statistics per zone, instead of global statistics?" n \
+ "--enable-zone-stats" \
+ "--disable-zone-stats"