From: John Hodge Date: Mon, 16 Feb 2015 07:24:02 +0000 (+0800) Subject: Usermode/libnet - Set recursion bit (We want the server to do as much as possible... X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=c58f6a057d31ee2c2be3b41b8ff17c4a3dcb9c4f;p=tpg%2Facess2.git Usermode/libnet - Set recursion bit (We want the server to do as much as possible for us) --- diff --git a/Usermode/Libraries/libnet.so_src/dns.c b/Usermode/Libraries/libnet.so_src/dns.c index 518d4d47..3bb9c355 100644 --- a/Usermode/Libraries/libnet.so_src/dns.c +++ b/Usermode/Libraries/libnet.so_src/dns.c @@ -36,7 +36,7 @@ int DNS_Query(int ServerAType, const void *ServerAddr, const char *name, enum eT assert( (6*2) + (namelen + 2*2) < 512 ); // - Header pos += put16(packet + pos, 0xAC00); // Identifier (arbitary) - pos += put16(packet + pos, (0 << 0) | (0 << 1) ); // Op : Query, Standard, no other flags + pos += put16(packet + pos, (0 << 0) | (0 << 1) | (1 << 8) ); // Op : Query, Standard, Recursion pos += put16(packet + pos, 1); // QDCount pos += put16(packet + pos, 0); // ANCount pos += put16(packet + pos, 0); // NSCount