# remove obsolete options
list_remove NSD_OPTS '--enable-full-prehash' &&
list_remove NSD_OPTS '--disable-full-prehash' &&
list_remove NSD_OPTS '--enable-zone-stats' &&
list_remove NSD_OPTS '--disable-zone-stats' &&

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" &&

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"
