/*
* nsd-checkzone.c -- nsd-checkzone(8) checks zones for syntax errors
*
* Copyright (c) 2013, NLnet Labs. All rights reserved.
*
* See LICENSE for the license.
*
*/
/*
* Print the help text.
*
*/
static void
usage (void)
{
fprintf(stderr, "Usage: nsd-checkzone [-p] <zone name> <zone file>\n");
fprintf(stderr, "\t-p\tprint the zone if the zone is ok\n");
fprintf(stderr, "\t-i <old zone file>\tcreate an IXFR from the differences between the\n\t\told zone file and the new zone file. Writes to \n\t\t<zonefile>.ixfr and renames other <zonefile>.ixfr files to\n\t\t<zonefile>.ixfr.num+1.\n");
fprintf(stderr, "\t-n <ixfr number>\tnumber of IXFR versions to store, at most.\n\t\tdefault %d.\n", (int)IXFR_NUMBER_DEFAULT);
fprintf(stderr, "\t-s <ixfr size>\tsize of IXFR to store, at most. default %d.\n", (int)IXFR_SIZE_DEFAULT);
fprintf(stderr, "Version %s. Report bugs to <%s>.\n",
PACKAGE_VERSION, PACKAGE_BUGREPORT);
}
check_zone(&nsd, argv[0], argv[1], print_zone ? stdout : NULL,
oldzone, ixfr_number, ixfr_size);
region_destroy(nsd.options->region);
/* yylex_destroy(); but, not available in all versions of flex */