diff options
Diffstat (limited to 'source3/namedbname.c')
-rw-r--r-- | source3/namedbname.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/namedbname.c b/source3/namedbname.c index 0ec8cdbbbe..d2ce9b1040 100644 --- a/source3/namedbname.c +++ b/source3/namedbname.c @@ -529,6 +529,14 @@ struct name_record *search_for_name(struct subnet_record **d, if (*d == NULL) return NULL; + if (!n && (search & FIND_SELF)) { + if (!lp_wins_proxy()) + DEBUG(3,("wins proxy not enabled - failing lookup\n")); + else + DEBUG(3,("FIND_SELF set - failing lookup\n")); + return NULL; + } + /* now try DNS lookup. */ if (!n) { |