# Set to "yes" to enable the SSH server:
SSH_SERVER_ENA="no"
+# Set to "yes" to enable the DNS server:
+DNS_SERVER_ENA="no"
+
# Set FIREWALL_ENA to "yes" to enable the firewall:
FIREWALL_ENA="no"
# Set FIREWALL_WWW to the ethernet interface connected to the outside world (internet):
# Source functions library
source /etc/rc.d/init.d/functions
+log_script_name "$0 $*"
+
# Source the network parameters file for the domain name
source /etc/sysconfig/network/network-parameters
-log_script_name "$0 $*"
+# Check if NFS server functionality is desired
+if ["x${DNS_SERVER_ENA}" != "xyes" -a \
+ "x${DNS_SERVER_ENA}" != "xYes" -a \
+ "x${DNS_SERVER_ENA}" != "xYES" ]; then
+ msg_log "DNS server disabled in '/etc/sysconfig/network/network-parameters'"
+ exit ${EXIT_CODE_SUCCESS}
+fi
DAEMON=/usr/sbin/named
DAEMON_DESC="BIND server"
# script-name start stop
bootscript_add_rc3 named 25 65
+
+ sed -i -e "s/^\(DNS_SERVER_ENA=\).*/\1\"yes\"/" \
+ etc/sysconfig/network/network-parameters
}