With vagrant, the plugin vagrant-hostmanager
works wonders. Automatically updates your host file so you don’t have to worry about it.
Works particularly well when you have a separate Vagrant install for each project too, just start up the box and your hosts file is automatically updated