define(HOURS, `eval($1*3600)')
define(DAYS, `eval($1*86400)')
+# Since slashes can occur in zone names, we convert them to @'s
+
+define(nsc_file_name, `translit($1,/,@)')
+
# Reverse an IP address
define(nsc_revIPa, `ifelse($#, 1, `$1', `nsc_revIPa(shift($@)).$1')')
define(`nsc_fatal_error', `errprint(`NSC error: $1
')m4exit(1)')
-# Default values of parameters and user configuration
+# Default values of parameters
define(`NAMED_RESTART_CMD', `ndc reload')
-define(`BIND_OPTIONS', ` # Other options can be added here via macro BIND_OPTIONS')
+define(`BIND_OPTIONS', ` # Other options can be added here via macro `BIND_OPTIONS'')
define(`ROOT', `/etc/named')
define(`CFDIR', `cf')
',`'))
define(`MAINTNAME', `root'.`nsc_corr_dot(NSNAME)')
+# And finally we change comments to semicolons to be compatible with the zone files
+
+changecom(;)
+
+; User-defined parts of configuration
+
include(CFDIR/config)