Tagged Questions
1
vote
2answers
207 views
Simple command that switches between two host files
I am using /etc/host to map localhost to a web domain. I would like a fast way of doing this rather than searching and replacing every time. I put this in my .bashrc file.
alias hostchange='
...
0
votes
1answer
725 views
/etc/hosts in debian resets itself on reboot
I've been having a problem where when our vps provider decides to restart the server (running Debian 5.0.8), the server fails to remember changes to /etc/hosts. All I need is an database alias that ...