[nsd-users] Confusing error message from zonec

Shane Kerr shane at ca.afilias.info
Wed May 28 14:50:22 UTC 2008


All,

I ran zonec today and had a confusing error message:

shane at app2.lab1:~/dnssec> ~/nsec3/sbin/zonec -c ./nsd.conf -z  
db.org.signed
[1211985210] zonec[24089]: notice: changed directory to /home/shane/ 
dnssec
zonec: must have -z zonefile when reading single zone.

The only thing this command line *does* have is a "-z zonefile" flag!

It turns out I was missing the "-o" option. Here's a patch which fixes  
the output.

--
Shane

--- zonec.c.orig	2008-04-18 08:39:45.000000000 +0000
+++ zonec.c	2008-05-28 14:46:15.000000000 +0000
@@ -1475,7 +1475,7 @@
  		/*
  		 * Read a single zone file with the specified origin
  		 */
-		if(!singlefile || !origin) {
+		if(!singlefile) {
  			fprintf(stderr, "zonec: must have -z zonefile when reading single  
zone.\n");
  			exit(1);
  		}



More information about the nsd-users mailing list