Browse 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 14 years ago
parent
commit
986bddd7e6
1 changed files with 1 additions and 0 deletions
  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));