Changeset 174 for trunk/pdns/pdns/packethandler.cc
- Timestamp:
- 06/21/03 11:59:08 (10 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/packethandler.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/packethandler.cc
r172 r174 155 155 156 156 if (p->qclass == 3 && p->qtype.getName() == "HINFO") { 157 rr.content = "PowerDNS $Id: packethandler.cc,v 1.1 5 2003/05/24 16:02:47ahu Exp $";157 rr.content = "PowerDNS $Id: packethandler.cc,v 1.16 2003/06/21 09:59:08 ahu Exp $"; 158 158 rr.ttl = 5; 159 159 rr.qname=target; … … 171 171 DNSResourceRecord rr; 172 172 if(p->qtype.getCode()==QType::TXT && target=="version.bind") {// TXT 173 rr.content="Served by POWERDNS "VERSION" $Id: packethandler.cc,v 1.1 5 2003/05/24 16:02:47ahu Exp $";173 rr.content="Served by POWERDNS "VERSION" $Id: packethandler.cc,v 1.16 2003/06/21 09:59:08 ahu Exp $"; 174 174 rr.ttl=5; 175 175 rr.qname=target; … … 496 496 u_int32_t theirserial=0; 497 497 498 /* to quote Rusty Russell - this code is so bad that you can actually hear it suck */ 499 /* this is an instant DoS, just spoof notifications from the address of the master and we block */ 500 498 501 Resolver resolver; 499 502 int res=resolver.getSoaSerial(p->getRemote(),p->qdomain, &theirserial); … … 513 516 theirserial<<" > "<<di.serial<<endl; 514 517 515 Communicator.addSuckRequest(p->qdomain, p->getRemote() );518 Communicator.addSuckRequest(p->qdomain, p->getRemote(),true); // priority 516 519 } 517 520 return -1;