Skip to content
This repository was archived by the owner on Feb 27, 2018. It is now read-only.

Commit 93908af

Browse files
committed
Merge pull request #320 from tianon/direct-dns
Switch to direct DNS pass-through
2 parents b8fd53e + 17fa972 commit 93908af

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

virtualbox/machine.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,10 +636,12 @@ func (m *Machine) Modify() error {
636636
"--bioslogodisplaytime", "0",
637637
"--biosbootmenu", "disabled",
638638

639-
// VirtualBox's DNS Host Resolver doesn't support SRV records
639+
// the DNS Host Resolver doesn't support SRV records
640+
// the DNS proxy has performance issues
640641
// direct DNS pass-through doesn't support roaming laptops well
641-
// so we explicitly enable the DNS proxy
642-
"--natdnsproxy1", "on",
642+
// we can't win, so let's go direct and at least get performance
643+
"--natdnshostresolver1", "off",
644+
"--natdnsproxy1", "off",
643645

644646
"--ostype", m.OSType,
645647
"--cpus", fmt.Sprintf("%d", m.CPUs),

0 commit comments

Comments
 (0)