Changeset 947
- Timestamp:
- 01/15/07 23:13:44 (2 years ago)
- Files:
-
- trunk/pdns/pdns/dnspacket.cc (modified) (1 diff)
- trunk/pdns/pdns/dnspacket.hh (modified) (1 diff)
- trunk/pdns/pdns/packethandler.cc (modified) (4 diffs)
- trunk/pdns/regression-tests/ns-with-identical-glue (added)
- trunk/pdns/regression-tests/ns-with-identical-glue/command (added)
- trunk/pdns/regression-tests/ns-with-identical-glue/description (added)
- trunk/pdns/regression-tests/ns-with-identical-glue/expected_result (added)
- trunk/pdns/regression-tests/test.com (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pdns/pdns/dnspacket.cc
r941 r947 232 232 DLOG(L<<"Adding an A record to the packet!"<<endl); 233 233 addARecord(rr.qname, htonl(inet_addr(rr.content.c_str())), rr.ttl, rr.d_place); 234 } 235 236 void DNSPacket::clearRecords() 237 { 238 rrs.clear(); 234 239 } 235 240 trunk/pdns/pdns/dnspacket.hh
r941 r947 130 130 131 131 132 void clearRecords(); //!< when building a packet, wipe all previously added records 133 132 134 /** Add a DNSResourceRecord to this packet. A DNSPacket (as does a DNS Packet) has 4 kinds of resource records. Questions, 133 135 Answers, Authority and Additional. See RFC 1034 and 1035 for details. You can specify where a record needs to go in the trunk/pdns/pdns/packethandler.cc
r940 r947 1 /*1 /* 2 2 PowerDNS Versatile Database Driven Nameserver 3 Copyright (C) 2002-200 5PowerDNS.COM BV3 Copyright (C) 2002-2007 PowerDNS.COM BV 4 4 5 5 This program is free software; you can redistribute it and/or modify … … 642 642 643 643 if(mret==2) { // there is some data, but not of the correct type 644 DLOG(L<<"There is some data, but not of the correct type "<<endl);644 DLOG(L<<"There is some data, but not of the correct type, adding SOA for NXRECORDSET"<<endl); 645 645 SOAData sd; 646 646 if(getAuth(p, &sd, target, 0)) { … … 763 763 764 764 if(weAuth) { 765 DLOG(L<<Logger::Warning<<"Soa found: "<<soa<<endl);765 DLOG(L<<Logger::Warning<<"Soa found: '"<<sd.qname<<"'"<<endl); 766 766 ; 767 767 } … … 806 806 807 807 while(B.get(rr)) { 808 if(!found) 809 r->clearRecords(); // we need to start out with an empty slate 808 810 found=true; 809 811 rr.d_place=DNSResourceRecord::AUTHORITY; // this for the authority section trunk/pdns/regression-tests/test.com
r509 r947 23 23 _double._tcp.dc IN SRV 0 100 389 server1 24 24 _double._tcp.dc IN SRV 1 100 389 server1 25 blah IN NS blah 26 blah IN A 9.9.9.9