From c58f6a057d31ee2c2be3b41b8ff17c4a3dcb9c4f Mon Sep 17 00:00:00 2001
From: John Hodge <tpg@mutabah.net>
Date: Mon, 16 Feb 2015 15:24:02 +0800
Subject: [PATCH] Usermode/libnet - Set recursion bit (We want the server to do
 as much as possible for us)

---
 Usermode/Libraries/libnet.so_src/dns.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
GitLab