瀏覽代碼

Improve vagrant DNS on windows

Fixes #1288

Used speediest to confirm that this doesn't affect Linux network performance (if anything, it's faster)
Hamilton Turner 10 年之前
父節點
當前提交
8a9a86d361
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      deployment/vagrant-common/core.rb

+ 5 - 0
deployment/vagrant-common/core.rb

@@ -95,6 +95,11 @@ def provider_virtualbox(config, role, ip_address='172.16.0.16')
       vb.gui = true
     end
 
+    # Improve Windows VirtualBox DNS resolution speed
+    # Addresses mitchellh/vagrant#1807 and TechEmpower/FrameworkBenchmarks#1288
+    vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
+    vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
+
     vb.memory = ENV.fetch('TFB_VB_MEM', 3022)
     vb.cpus = ENV.fetch('TFB_VB_CPU', 2)