Slow DNS lookup causing slow web browsing when connected to VPN on Windows 10 (solved)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 2, 2018 at 11:52 PM, Mark Jeffrey <mjeffrey at email.com> wrote:
> Subject: Resume e-mail Search Search New folder Add e-mail account Premium Features Help Settings About us Slow DNS lookup causing slow web browsing when connected to VPN on Windows 10 (solved)

Something went slightly crazy with your subject line :-).

> I think a better option is to modify the script to remove the DNS servers before adding the new one(s):

In patch form?

diff --git a/vpnc-script-win.js b/vpnc-script-win.js
index a3a0974..6950452 100644
--- a/vpnc-script-win.js
+++ b/vpnc-script-win.js
@@ -115,6 +115,8 @@ case "connect":

     if (env("INTERNAL_IP4_DNS")) {
  var dns = env("INTERNAL_IP4_DNS").split(/ /);
+ run("netsh interface ip delete dns \"" +
+                    env("TUNDEV") + " all");
  for (var i = 0; i < dns.length; i++) {
                  run("netsh interface ip add dns \"" +
      env("TUNDEV") + "\" " + dns[i]


Perhaps this ought to be tweaked so that the DNS servers are deleted
unconditionally, before setting up the tunnel device, whether or not
INTERNAL_IP4_DNS is set??

Dan



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux