summaryrefslogtreecommitdiff
path: root/source3/lib/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/system.c')
-rw-r--r--source3/lib/system.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c
index 39f845b30e..447a4f88ac 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -378,6 +378,7 @@ apparent reason.
****************************************************************************/
struct hostent *sys_gethostbyname(char *name)
{
+#ifdef REDUCE_ROOT_DNS_LOOKUPS
char query[256], hostname[256];
char *domain;
@@ -406,5 +407,8 @@ struct hostent *sys_gethostbyname(char *name)
sprintf(query, "%s%s", name, domain);
return(gethostbyname(query));
+#else /* REDUCE_ROOT_DNS_LOOKUPS */
+ return(gethostbyname(name));
+#endif /* REDUCE_ROOT_DNS_LOOKUPS */
}