From: Bert Hubert Date: Sat, 17 Nov 2007 21:20:38 +0000 (+0000) Subject: implement fallback support of IXFR queries as AXFR - no real functionality here.... X-Git-Tag: rec-3.1.7.1~138 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af1311e449040e2cb946167d7c7768706587a189;p=pdns implement fallback support of IXFR queries as AXFR - no real functionality here. Closes ticket #131. Suggested by user 'anon' git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1103 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/qtype.cc b/pdns/qtype.cc index 16fcb2c57..0b9f58679 100644 --- a/pdns/qtype.cc +++ b/pdns/qtype.cc @@ -1,6 +1,6 @@ /* PowerDNS Versatile Database Driven Nameserver - Copyright (C) 2002 PowerDNS.COM BV + Copyright (C) 2002 - 2007 PowerDNS.COM BV This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 @@ -64,6 +64,7 @@ QType::QType() insert("RRSIG", 46); insert("DNSKEY", 48); insert("SPF",99); + insert("IXFR",251); insert("AXFR",252); insert("ANY",255); insert("URL",256); diff --git a/pdns/tcpreceiver.cc b/pdns/tcpreceiver.cc index 507c9bf36..c52783c1e 100644 --- a/pdns/tcpreceiver.cc +++ b/pdns/tcpreceiver.cc @@ -269,7 +269,7 @@ void *TCPNameserver::doConnection(void *data) if(packet->parse(mesg, pktlen)<0) break; - if(packet->qtype.getCode()==QType::AXFR) { + if(packet->qtype.getCode()==QType::AXFR || packet->qtype.getCode()==QType::IXFR ) { if(doAXFR(packet->qdomain, packet, fd)) S.inc("tcp-answers"); continue;