… | |
… | |
786 | pkt.qdcount = htons (1); |
786 | pkt.qdcount = htons (1); |
787 | pkt.ancount = 0; |
787 | pkt.ancount = 0; |
788 | pkt.nscount = 0; // should be self, as other nameservers reply like this |
788 | pkt.nscount = 0; // should be self, as other nameservers reply like this |
789 | pkt.arcount = 0; // a record for self, as other nameservers reply like this |
789 | pkt.arcount = 0; // a record for self, as other nameservers reply like this |
790 | |
790 | |
791 | pkt.flags = htons (DEFAULT_SERVER_FLAGS | FLAG_RCODE_NXDOMAIN); |
791 | pkt.flags = htons (DEFAULT_SERVER_FLAGS | FLAG_RCODE_SERVFAIL); |
792 | |
792 | |
793 | int dlen = strlen (THISNODE->domain); |
793 | int dlen = strlen (THISNODE->domain); |
794 | |
794 | |
795 | if (qclass == RR_CLASS_IN |
795 | if (qclass == RR_CLASS_IN |
796 | && qlen > dlen + 1 |
796 | && qlen > dlen + 1 |