From 4c59138232ee7ded5ba4bda9bb2c79d171d29d68 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Mon, 1 Dec 2014 15:07:07 -0700 Subject: [PATCH] Explicitly use the VirtualBox NAT DNS Proxy --- virtualbox/machine.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/virtualbox/machine.go b/virtualbox/machine.go index e275abb..76f0b7d 100644 --- a/virtualbox/machine.go +++ b/virtualbox/machine.go @@ -633,10 +633,14 @@ func (m *Machine) Modify() error { "--firmware", "bios", "--bioslogofadein", "off", "--bioslogofadeout", "off", - "--natdnshostresolver1", "on", "--bioslogodisplaytime", "0", "--biosbootmenu", "disabled", + // VirtualBox's DNS Host Resolver doesn't support SRV records + // direct DNS pass-through doesn't support roaming laptops well + // so we explicitly enable the DNS proxy + "--natdnsproxy1", "on", + "--ostype", m.OSType, "--cpus", fmt.Sprintf("%d", m.CPUs), "--memory", fmt.Sprintf("%d", m.Memory),