#!/bin/bash # Placed in the public domain 2002 by Sam Trenholme # The following is a pointer to the MaraDNS program MARADNS="/usr/sbin/maradns" # The following is the directory we place MaraDNS log entries in # The name of the logfile is determined by the name of the # mararc file; it is the name of the mararc file with all slashes # converted in to underlines; with all leading underlines removed. # If the mararc file has a dot in it (e.g. /etc/mararc.1), we only # use the portion of the logfile which is after the dot. # Finally, we put the word "maradns." at the front of the logfile # name. # Examples: a mararc file of /etc/mararc results in a logfile name of # maradns.etc_mararc. # A mararc file if /etc/mararc.1 resuls in a logfile name of # maradns.1. # maradns.1 LOGDIR="/var/log/maradns" # The following is a list of all mararc files which we will load or # unload; # Simple case: # Only one MaraDNS process, using the /etc/maradns/mararc.* file. # Recursive dns server MARARCS="/etc/maradns/mararc.recursive" # Authorative dns server #MARARCS="/etc/maradns/mararc.authorative" # Full dns server #MARARCS="/etc/maradns/mararc.full" # # Complex case: # Three MaraDNS processes, one using /etc/mararc.1, the second one # using /etc/mararc.2, and the third one using /etc/mararc.3 #MARARCS="/etc/mararc.1 /etc/mararc.2 /etc/mararc.3"