Changeset 1054

Show
Ignore:
Timestamp:
05/20/07 23:14:30 (3 years ago)
Author:
ahu
Message:

final fix hopefully for fancy record any queries of wildcard records

Files:
1 modified

Legend:

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

    r1053 r1054  
    276276      if((p->qtype.getCode()==QType::ANY || rr.qtype==p->qtype) || rr.qtype.getCode()==QType::CNAME) { 
    277277        rr.qname=target; 
     278 
     279        if(d_doFancyRecords && p->qtype.getCode()==QType::ANY && (rr.qtype.getCode()==QType::URL || rr.qtype.getCode()==QType::CURL)) { 
     280          rr.content=arg()["urlredirector"]; 
     281          rr.qtype=QType::A;  
     282        } 
     283 
    278284        r->addRecord(rr);  // and add 
    279285        if(rr.qtype.getCode()==QType::CNAME) {