Below works 50% of the time every time!
Add this to .bashrc so that you don't need to sudo edit /etc/hosts all the timeā¦
export HOSTALIASES=~/.hosts
Then add your hosts to .hosts file.