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

Commit a830982

Browse files
committed
Merge pull request #316 from tianon/proxy-dns
Explicitly use the VirtualBox NAT DNS Proxy
2 parents 2fb5d0a + 4c59138 commit a830982

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

virtualbox/machine.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,10 +633,14 @@ func (m *Machine) Modify() error {
633633
"--firmware", "bios",
634634
"--bioslogofadein", "off",
635635
"--bioslogofadeout", "off",
636-
"--natdnshostresolver1", "on",
637636
"--bioslogodisplaytime", "0",
638637
"--biosbootmenu", "disabled",
639638

639+
// VirtualBox's DNS Host Resolver doesn't support SRV records
640+
// direct DNS pass-through doesn't support roaming laptops well
641+
// so we explicitly enable the DNS proxy
642+
"--natdnsproxy1", "on",
643+
640644
"--ostype", m.OSType,
641645
"--cpus", fmt.Sprintf("%d", m.CPUs),
642646
"--memory", fmt.Sprintf("%d", m.Memory),

0 commit comments

Comments
 (0)