My development environment is Ubuntu guest OS inside VMWare Player with Windows 7 as the host OS. I edit the hosts file in windows to point http://dev.mydomain.com to the ip-address of my VM so that I can test browsers in windows. I love this setup, but have to update my hosts file quite often to take advantage of it. Is there a way to either prevent the ip-address from changing so frequently, or to automatically update the hosts file when it changes?
migrated from serverfault.com Nov 21 '11 at 14:55
This question came from our site for professional system and network administrators.