]> mj.ucw.cz Git - nsc-5.git/blobdiff - m4/dnslib.m4
DNSSEC: Key management scripts
[nsc-5.git] / m4 / dnslib.m4
index a3eddcd45801be33c04d3eff8110af7565c166ac..b09d4d1df669b7deba93e8172eb3b06250cbf4e8 100644 (file)
@@ -1,12 +1,12 @@
 dnl ###
 dnl ###
-dnl ### NSC 3.0 -- Library Functions For DNS Processing
-dnl ### (c) 1997--2003 Martin Mares <mj@ucw.cz>
+dnl ### NSC -- Library Functions For DNS Processing
+dnl ### (c) 1997--2011 Martin Mares <mj@ucw.cz>
 dnl ###
 divert(-1)
 
 # NSC version
 
 dnl ###
 divert(-1)
 
 # NSC version
 
-define(`NSCVER', `NSC 2.99a')
+define(`NSCVER', `NSC 3.1')
 
 # Current date and time
 
 
 # Current date and time
 
@@ -85,15 +85,16 @@ define(`nsc_fatal_error', `errprint(`NSC error: $1
 
 # Default values of parameters
 
 
 # Default values of parameters
 
-define(`NAMED_RESTART_CMD', `ndc reload')
-
-define(`BIND_OPTIONS', `       # Other options can be added here via macro `BIND_OPTIONS'')
+define(`NAMED_RESTART_CMD', `rndc reload')
 
 define(`ROOT', `/etc/named')
 define(`CFDIR', `cf')
 define(`ZONEDIR', `zone')
 define(`BAKDIR', `bak')
 define(`VERSDIR', `ver')
 
 define(`ROOT', `/etc/named')
 define(`CFDIR', `cf')
 define(`ZONEDIR', `zone')
 define(`BAKDIR', `bak')
 define(`VERSDIR', `ver')
+define(`HASHDIR', `hash')
+define(`KEYDIR', `keys')
+define(`DSSDIR', `dss')
 define(`ROOTCACHE', `root.cache')
 
 define(`REFRESH', HOURS(8))
 define(`ROOTCACHE', `root.cache')
 
 define(`REFRESH', HOURS(8))
@@ -104,6 +105,9 @@ define(`NSNAME', translit(esyscmd(`hostname -f'),`
 ',`'))
 define(`MAINTNAME', `root'.`nsc_corr_dot(NSNAME)')
 
 ',`'))
 define(`MAINTNAME', `root'.`nsc_corr_dot(NSNAME)')
 
+define(`KEYGEN_OPTIONS', `-a RSASHA256 -b 1024')
+define(`SIGNZONE_OPTIONS', `-e +'DAYS(365))
+
 # And finally we change comments to semicolons to be compatible with the zone files
 
 changecom(;)
 # And finally we change comments to semicolons to be compatible with the zone files
 
 changecom(;)