#!/usr/bin/env bash #################### ## Global options ## #################### # # Paths to external binaries # #DIG="/usr/bin/dig" #IDN2="/usr/bin/idn2" #JQ="/usr/bin/jq" #NAMED_CHECKCONF="/usr/bin/named-checkconf" #NSUPDATE="/usr/bin/nsupdate" #RNDC="/usr/sbin/rndc" # # Path to library directory # #LIB_DIR="/usr/local/dns-manager/lib" # # Color of the header text when printing tables # #TABLE_HEADER_COLOR="red" #TERMINAL_WITH=$(/usr/bin/tput cols) ############################## ## Options for DDNS updates ## ############################## # # IP address of the DNS server (default is 127.0.0.1) # #DNS_IP="127.0.0.1" # # Associative array of paths to key files (TSIG) per view used for zone transfers # and DDNS updates. This option mandatory when using views other than the default view. # The keys have to be in one of these forms: # - VIEW # - ZONE@VIEW # #declare -A DNS_KEYS=( # [_default]="/etc/bind/rndc.key" #) ####################################### ## Options for adding/removing zones ## ####################################### # # Optional control key used to run "rndc reconfig" after adding or deleting zones. # Otherwise the rndc default key is used. # #CONTROL_KEY="/etc/bind/rndc.key" # # Associative array of directories and config files per view. This option is mandatory when adding # or removing zones. The syntax of the value is: # ZONEDIR:CONFDIR:CFGFILE # # Zone files are stored in ZONEDIR and config files are stored in CONFDIR. # The content of all config files in CONFDIR are concatenated and written to CFGFILE which # has to be included by "named.conf". # The detour via CONFDIR is necessary because Bind does not support wildcards when # including config files. # #declare -A BASE_CONFIG=( # [_default]="/etc/bind/dyn:/etc/dns-manager/default.zones:/etc/bind/default_zones.conf" #) # # Optional associative array of templates per view used when adding new zones. # The syntax of the value is: # ZONE_TEMPLATE:CONF_TEMPLATE # #declare -A ZONE_TEMPLATES=( # [_default]="/etc/dns-manager/templates/zone.template:/etc/dns-manager/templates/zone.config.template" #)