summaryrefslogtreecommitdiff
path: root/source3/nameserv.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nameserv.c')
-rw-r--r--source3/nameserv.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/nameserv.c b/source3/nameserv.c
index 802b98ec0a..b64a934572 100644
--- a/source3/nameserv.c
+++ b/source3/nameserv.c
@@ -1798,6 +1798,11 @@ static void reply_name_query(struct packet_struct *p)
return;
}
+ if (!lp_proxy_name_resolution() && n->source != SELF) {
+ DEBUG(3,("no proxy resolution\n"));
+ return;
+ }
+
/* don't respond to bcast queries for addresses on the same net as the
machine doing the querying unless its our IP */
if (bcast &&