Changeset 2053

Show
Ignore:
Timestamp:
02/25/11 21:54:32 (2 years ago)
Author:
ahu
Message:

backends supporting DNSSEC must return all records of one (name,type) tuple consecutively. This commit solves the issue
where multiple signatures were seen for a single such tuple.

Location:
trunk/pdns/modules
Files:
3 modified

Legend:

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

    r2024 r2053  
    7676    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'"); 
    7777 
    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      
     78    declare(suffix,"list-query-auth","AXFR query", "select content,ttl,prio,type,domain_id,name, auth from records where domain_id='%d' order by name, type"); 
    8179     
    8280    declare(suffix,"master-zone-query","Data", "select master from domains where name='%s' and type='SLAVE'"); 
  • trunk/pdns/modules/gpgsqlbackend/gpgsqlbackend.cc

    r2024 r2053  
    7373    declare(suffix,"wildcard-any-id-query-auth","Wildcard ANY with ID query","select content,ttl,prio,type,domain_id,name, case when auth then 1 else 0 end as auth from records where name like '%s' and domain_id='%d'"); 
    7474 
    75     declare(suffix,"list-query-auth","AXFR query", "select content,ttl,prio,type,domain_id,name, case when auth then 1 else 0 end as auth from records where domain_id='%d'"); 
     75    declare(suffix,"list-query-auth","AXFR query", "select content,ttl,prio,type,domain_id,name, case when auth then 1 else 0 end as auth from records where domain_id='%d' order by name, type"); 
    7676     
    7777    declare(suffix,"master-zone-query","Data", "select master from domains where name='%s' and type='SLAVE'"); 
  • trunk/pdns/modules/gsqlite3backend/gsqlite3backend.cc

    r2047 r2053  
    8282    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'"); 
    8383 
    84     declare(suffix,"list-query-auth","AXFR query", "select content,ttl,prio,type,domain_id,name, auth from records where domain_id='%d'"); 
     84    declare(suffix,"list-query-auth","AXFR query", "select content,ttl,prio,type,domain_id,name, auth from records where domain_id='%d' order by name, type"); 
    8585     
    8686    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");