Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My current development environment is Ubuntu 10.04 64bit host and Windows 7 64bit guest and guest is NAT connected. I use Ubuntu as a host because I feel at home but I needed some Windows only software so I installed it as guest.

I use Dreamweaver on the guest and my LAMP stack and the PHP files on Ubuntu and I shared the folder with Windows. On Ubuntu I added to the /etc/hosts file so I can test it with its own URL.

On Windows if I hit it doesn't go to my local test site but instead to the online site. I added the System32/etc/hosts file to my host OS IP so that it works seamlessly but the host's IP keeps changing so I have to reconfigure every time.

Is there a better solution?

share|improve this question
  • Static IP address on the Ubuntu host.
  • DNS server (dnsmasq or bind9) in the host.
  • Local name resolution - either Windows NetBIOS with Samba, or mDNS with Avahi/Bonjour. (You will have to configure a second virtual host, example or example.local, in Apache.)
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.