Changeset 1798

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

make sure we stuff in synthesised DNSKEYs for an ANY query - maybe this will make unbound happy?
next up, checking CaSiNg?

Files:
1 modified

Legend:

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

    r1797 r1798  
    228228    haveOne=true; 
    229229  } 
    230  
    231  
    232230  return haveOne; 
    233231} 
     
    10301028  //  cerr<<"Need to add all the NSEC too.."<<endl; /// XXX FIXME THE ABOVE IF IS WEIRD 
    10311029  addNSECX(p, r, target, sd.qname, 2);  
     1030  if(sd.qname == p->qdomain) { 
     1031    DNSSECKeeper::keyset_t zskset = d_dk.getKeys(p->qdomain); 
     1032    DNSResourceRecord rr; 
     1033    BOOST_FOREACH(DNSSECKeeper::keyset_t::value_type value, zskset) { 
     1034      rr.qtype=QType::DNSKEY; 
     1035      rr.ttl=3600; 
     1036      rr.qname=p->qdomain; 
     1037      rr.content=value.first.getDNSKEY().getZoneRepresentation(); 
     1038      rr.auth = true; 
     1039      r->addRecord(rr); 
     1040    } 
     1041  } 
    10321042} 
    10331043