Show
Ignore:
Timestamp:
03/04/12 14:47:30 (15 months ago)
Author:
ahu
Message:

pdnssec create-bind-db would only create such a database.. if you already had one. And the one it made for you, was incomplete. Must be Sunday.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/pdnssec.cc

    r2450 r2453  
    435435    cerr<<"                                 Add a ZSK or KSK to zone and specify algo&bits\n"; 
    436436    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";  
    438438    cerr<<"deactivate-zone-key ZONE KEY-ID  Deactivate the key with key id KEY-ID in ZONE\n"; 
    439439    cerr<<"disable-dnssec ZONE              Deactivate all keys and unset PRESIGNED in ZONE\n"; 
     
    463463  loadMainConfig(g_vm["config-dir"].as<string>()); 
    464464  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   
    465476  DNSSECKeeper dk; 
    466477 
    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") { 
    472479    if(cmds.size() < 2) { 
    473480      cerr << "Syntax: pdnssec rectify-zone ZONE [ZONE..]"<<endl;