1

Do Vagrant forwarded ports work both ways?

view story
linux-howto

http://serverfault.com – I have set up vagrant-dns but it's a shame I can't use the names from within my Vagrant VMs. (vagrant-dns sets up a nameserver on port 5300 on the host machine) I found the resolver cookbook and it occurred to me I could maybe use that with Vagrant's port forwarding to make the vagrant-dns nameserver accessible from with the VM. It will need port forwarding because you can't specify different port number for nameservers in resolv.conf. I added this to my Vagrantfile: config.vm.forward_port 5300, 53 ...hoping that requests to 33.33.33.1 port 53 from the VM would thus hit the nameserver on (HowTos)