Changeset 2453 for trunk/pdns/pdns/pdnssec.cc
- Timestamp:
- 03/04/12 14:47:30 (15 months ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/pdnssec.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/pdnssec.cc
r2450 r2453 435 435 cerr<<" Add a ZSK or KSK to zone and specify algo&bits\n"; 436 436 cerr<<"check-zone ZONE Check a zone for correctness\n"; 437 cerr<<"create-bind-db [FNAME] Create a DNSSEC database for BIND backend\n";437 cerr<<"create-bind-db FNAME Create DNSSEC db for BIND backend (bind-dnssec-db)\n"; 438 438 cerr<<"deactivate-zone-key ZONE KEY-ID Deactivate the key with key id KEY-ID in ZONE\n"; 439 439 cerr<<"disable-dnssec ZONE Deactivate all keys and unset PRESIGNED in ZONE\n"; … … 463 463 loadMainConfig(g_vm["config-dir"].as<string>()); 464 464 reportAllTypes(); 465 466 467 if(cmds[0] == "create-bind-db") { 468 if(cmds.size() != 2) { 469 cerr << "Syntax: pdnssec create-bind-db fname"<<endl; 470 return 0; 471 } 472 Bind2Backend::createDNSSECDB(cmds[1]); 473 return 1; 474 } 475 465 476 DNSSECKeeper dk; 466 477 467 if(cmds[0] == "create-bind-db") { 468 Bind2Backend b2b; 469 b2b.createDNSSECDB(cmds.size() > 1 ? cmds[1] : ""); 470 } 471 else if(cmds[0] == "rectify-zone") { 478 if(cmds[0] == "rectify-zone") { 472 479 if(cmds.size() < 2) { 473 480 cerr << "Syntax: pdnssec rectify-zone ZONE [ZONE..]"<<endl;