s4 dns: Only do recursive queries when allowed/desired
[gd/samba-autobuild/.git] / utils / samba-dig.c
index 3fd2ecffc4fd946e0e93e7449f9cced7e31e2de0..ec0677a367f68ccc6e5a31b38bbdd6fb325f6d27 100644 (file)
@@ -42,7 +42,7 @@ static struct dns_name_packet *make_name_packet(TALLOC_CTX *mem_ctx,
        }
 
        packet->id = random();
        }
 
        packet->id = random();
-       packet->operation |= operation;
+       packet->operation |= operation | DNS_FLAG_RECURSION_DESIRED;
 
        return packet;
 }
 
        return packet;
 }