X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/2c3a30778bb5a281c10736470058b5a63575a516..8bc22a17b97149d69fd377f5e9f5ed617a4385db:/dnssync.pas?ds=sidebyside

diff --git a/dnssync.pas b/dnssync.pas
index 84caf9a..66d9802 100644
--- a/dnssync.pas
+++ b/dnssync.pas
@@ -328,7 +328,7 @@ begin
   end;
 
   {$ifdef mswindows}
-  if usewindns then begin
+  if usewindns and (overridednsserver = '') then begin
     if (useaf = useaf_v4) then a := af_inet else if (useaf = useaf_v6) then a := af_inet6 else a := 0;
     result := winforwardlookuplist(name,a,dummy);
     {$ifdef ipv6}
@@ -399,7 +399,7 @@ var
   state:tdnsstatearr;
 begin
   {$ifdef mswindows}
-    if usewindns then begin
+    if usewindns and (overridednsserver = '') then begin
       result := winreverselookup(ip,dummy);
       exit;
     end;