I have a Ubuntu 18 Server as VM on my local PC running different webservices, for testing. The VMs /etc/hosts has several entries for the names of those services. To test them i'd like to use a browser on my local PC and access them via the virtual address given by the VirtualBox-Network-Adaptor.
Unfortunately the webservices delivers content which also has their service-names inside the data. The browser-app (AngularJS) then uses those names to access the several services. This fails, because the browser is getting DNS from global nameservers in our network.
Now i'm looking for a way to make the browser (Windows 10) resolve the names from the VMs /etc/hosts file, but did not found a way yet.
Neither the Proxy nor the NAT-functionality of VirtualBox is useable here, they are only good for the VM itselft, not the "outside" world :-)