From 26f7a676f9a0f6f8c5ae3bef9247c675734f35cd Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Tue, 27 Mar 2012 15:00:01 +0200 Subject: s4 dns: Only do recursive queries when allowed/desired If recursive queries are switched off in smb.conf or the client doesn't ask for recursion, don't recurse. Autobuild-User: Kai Blin Autobuild-Date: Tue Mar 27 17:39:26 CEST 2012 on sn-devel-104 --- utils/samba-dig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/samba-dig.c') diff --git a/utils/samba-dig.c b/utils/samba-dig.c index 3fd2ecffc4..ec0677a367 100644 --- a/utils/samba-dig.c +++ b/utils/samba-dig.c @@ -42,7 +42,7 @@ static struct dns_name_packet *make_name_packet(TALLOC_CTX *mem_ctx, } packet->id = random(); - packet->operation |= operation; + packet->operation |= operation | DNS_FLAG_RECURSION_DESIRED; return packet; } -- cgit