Changeset 1302
- Timestamp:
- 11/18/08 18:20:16 (16 months ago)
- Location:
- trunk/pdns
- Files:
-
- 4 added
- 4 modified
-
pdns/dnsrecords.cc (modified) (2 diffs)
-
pdns/dnsrecords.hh (modified) (1 diff)
-
pdns/packethandler.cc (modified) (1 diff)
-
regression-tests/mboxfw-record (added)
-
regression-tests/mboxfw-record/command (added)
-
regression-tests/mboxfw-record/description (added)
-
regression-tests/mboxfw-record/expected_result (added)
-
regression-tests/test.com (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/dnsrecords.cc
r1298 r1302 343 343 ) 344 344 345 boilerplate_conv(URL, 256, 345 // "fancy records" 346 boilerplate_conv(URL, QType::URL, 346 347 conv.xfrLabel(d_url); 348 ) 349 350 boilerplate_conv(MBOXFW, QType::MBOXFW, 351 conv.xfrLabel(d_mboxfw); 347 352 ) 348 353 … … 410 415 { 411 416 URLRecordContent::report(); 417 MBOXFWRecordContent::report(); 412 418 } 413 419 -
trunk/pdns/pdns/dnsrecords.hh
r1298 r1302 373 373 }; 374 374 375 class MBOXFWRecordContent : public DNSRecordContent // Fake, 'fancy record' with type 256 376 { 377 public: 378 includeboilerplate(MBOXFW) 379 private: 380 string d_mboxfw; 381 }; 382 383 375 384 #define boilerplate(RNAME, RTYPE) \ 376 385 RNAME##RecordContent::DNSRecordContent* RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \ -
trunk/pdns/pdns/packethandler.cc
r1299 r1302 659 659 if(mret==2) { // there is some data, but not of the correct type 660 660 r->clearRecords(); 661 662 if(d_doFancyRecords) { // MBOXFW, URL <- fake records, emulated with MX and A 663 DLOG(L<<"There is some data, but not of the correct type, checking fancy records"<<endl); 664 int res=doFancyRecords(p,r,target); 665 if(res) { // had a result 666 if(res<0) // it was an error 667 r->setRcode(RCode::ServFail); 668 goto sendit; 669 } 670 } 661 } 662 if(d_doFancyRecords) { // MBOXFW, URL <- fake records, emulated with MX and A 663 DLOG(L<<"There is some data, but not of the correct type, checking fancy records"<<endl); 664 int res=doFancyRecords(p,r,target); 665 if(res) { // had a result 666 if(res<0) // it was an error 667 r->setRcode(RCode::ServFail); 668 goto sendit; 669 } 670 } 671 if(mret == 2) { 671 672 DLOG(L<<"There is some data, but not of the correct type, adding SOA for NXRECORDSET"<<endl); 672 673 SOAData sd; -
trunk/pdns/regression-tests/test.com
r1298 r1302 25 25 blah IN A 9.9.9.9 26 26 images IN URL "http://www.ds9a.nl" 27 bert@test.com. IN MBOXFW "bert@ds9a.nl"