How can browsers in VMs resolve hostnames of websites on parent PC?
Posted
by elliot100
on Super User
See other posts from Super User
or by elliot100
Published on 2010-03-10T14:30:02Z
Indexed on
2010/04/11
20:13 UTC
Read the original article
Hit count: 248
I have a number of local websites in development on my Windows PC, set up as virtual hosts within Apache, with hostnames (along the lines of dev.example.com) resolved via the hosts file, so I can test them out them with various browsers.
I now want to extend browser testing to running browsers in various OSs in virtual machines, and want to be able to resolve dev.example.com from the VMs. Currently these are a mix of VMWare Server and VirtualPC.
I know I can edit the hosts file on any Windows VMs, but this is a bit fiddly and I'd like a solution which is independent of the individual VMs.
I think what I need is a nameserver, but what's the simplest way of going about this? I'd like everything to be self-contained on the one machine.
I think I can cover firewall and Apache permissioning issues.
© Super User or respective owner