{{tag>dns hosts bashrc}} Below works 50% of the time every time! ====== Custom hosts file location ====== 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. ====== Tested on ====== * ====== See also ====== ====== References ====== * https://unix.stackexchange.com/questions/10438/can-i-create-a-user-specific-hosts-file-to-complement-etc-hosts