I already have a custom domain name entry on my Mac's /etc/hosts
file that I use for local testing. I'm able to connect from a browser using http://dev.mysite.co:5000
.
127.0.0.1 dev.mysite.co
127.0.0.1 localhost
I'm using one of the VirtualBox images that Microsoft provides to test my site in Edge. I'm running into CORS issues since I have to connect to my localhost using http://10.0.2.2:5000
, so I'd like to reuse the domain settings from my /etc/hosts
.
The node server on my localhost is listening on 0.0.0.0:5000
.
I ran this command which is supposed to get guest OSes to use the host's DNS, but I'm not able to load http://dev.mysite.co:5000
inside my VM.
VBoxManage modifyvm "MSEdge - Win10_preview" --natdnshostresolver1 on
Is this command still valid? Is there anything else I should be doing to get this to work?