]> sjero.net Git - wget/blobdiff - src/host.c
[svn] New option --dns-cache.
[wget] / src / host.c
index 382707db4f4d151029e9e85b69326b246769ec01..9989022ac592e74d381b82eeb16879fbbe94aef0 100644 (file)
@@ -691,7 +691,8 @@ lookup_host (const char *host, int silent)
     logprintf (LOG_VERBOSE, _("done.\n"));
 
   /* Cache the lookup information. */
-  cache_host_lookup (host, al);
+  if (opt.dns_cache)
+    cache_host_lookup (host, al);
 
   return al;
 }