Show
Ignore:
Timestamp:
01/01/11 21:26:46 (2 years ago)
Author:
ahu
Message:

enable sqlite3 as a dnssec backend - especially useful as key storage for the BIND backend

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/modules/gsqlite3backend/gsqlite3backend.cc

    r1360 r1780  
    6464 
    6565    declare( suffix, "list-query", "AXFR query", "select content,ttl,prio,type,domain_id,name from records where domain_id=%d"); 
     66     
     67    // and now with auth 
     68    declare(suffix,"basic-query-auth","Basic query","select content,ttl,prio,type,domain_id,name, auth from records where type='%s' and name='%s'"); 
     69    declare(suffix,"id-query-auth","Basic with ID query","select content,ttl,prio,type,domain_id,name, auth from records where type='%s' and name='%s' and domain_id=%d"); 
     70    declare(suffix,"wildcard-query-auth","Wildcard query","select content,ttl,prio,type,domain_id,name, auth from records where type='%s' and name like '%s'"); 
     71    declare(suffix,"wildcard-id-query-auth","Wildcard with ID query","select content,ttl,prio,type,domain_id,name, auth from records where type='%s' and name like '%s' and domain_id='%d'"); 
     72 
     73    declare(suffix,"any-query-auth","Any query","select content,ttl,prio,type,domain_id,name, auth from records where name='%s'"); 
     74    declare(suffix,"any-id-query-auth","Any with ID query","select content,ttl,prio,type,domain_id,name, auth from records where name='%s' and domain_id=%d"); 
     75    declare(suffix,"wildcard-any-query-auth","Wildcard ANY query","select content,ttl,prio,type,domain_id,name, auth from records where name like '%s'"); 
     76    declare(suffix,"wildcard-any-id-query-auth","Wildcard ANY with ID query","select content,ttl,prio,type,domain_id,name, auth from records where name like '%s' and domain_id='%d'"); 
     77 
     78    declare(suffix,"list-query-auth","AXFR query", "select content,ttl,prio,type,domain_id,name, auth from records where domain_id='%d'"); 
     79     
     80    declare(suffix,"get-order-before-query","DNSSEC Ordering Query, before", "select ordername, name from records where ordername <= '%s' and auth=1 and domain_id=%d order by 1 desc limit 1"); 
     81    declare(suffix,"get-order-after-query","DNSSEC Ordering Query, afer", "select min(ordername) from records where ordername > '%s' and auth=1 and domain_id=%d"); 
     82    declare(suffix,"set-order-and-auth-query", "DNSSEC set ordering query", "update records set ordername='%s',auth=%d where name='%s' and domain_id='%d'"); 
     83     
     84     
    6685    declare( suffix, "master-zone-query", "Data", "select master from domains where name='%s' and type='SLAVE'"); 
    6786 
     
    7695    declare( suffix, "info-all-master-query", "", "select id,name,master,last_check,notified_serial,type from domains where type='MASTER'"); 
    7796    declare( suffix, "delete-zone-query", "", "delete from records where domain_id=%d"); 
    78     declare(suffix,"check-acl-query","", "select value from acls where acl_type='%s' and acl_key='%s'"); 
     97    declare( suffix, "check-acl-query","", "select value from acls where acl_type='%s' and acl_key='%s'"); 
     98    declare(suffix, "dnssec", "Assume DNSSEC Schema is in place","false"); 
     99     
    79100  } 
    80101