Parcourir la source

fix for NXDOMAIN becomes NOERROR
Copy the actual rcode from the response into our answer (it always set
NOERROR, so this should also work for other rcodes)

Jelte Jansen il y a 14 ans
Parent
commit
986bddd7e6
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/bin/resolver/resolver.cc

+ 1 - 0
src/bin/resolver/resolver.cc

@@ -260,6 +260,7 @@ public:
                 Message incoming(Message::PARSE);
                 InputBuffer ibuf(buffer->getData(), buffer->getLength());
                 incoming.fromWire(ibuf);
+                message->setRcode(incoming.getRcode());
                 for_each(incoming.beginSection(Message::SECTION_ANSWER),
                          incoming.endSection(Message::SECTION_ANSWER),
                          SectionInserter(message, Message::SECTION_ANSWER));