Is there some de-facto way for rewriting certain hostnames to other ones? Something like
/etc/hosts for host to host instead of ip to host. Is this possible or should I create a local dns cname for that host?
Update regarding the comments
I want to use the local name that resolves to remote domain. The browser is just an example. I'm actually writing an ios app that requests resources from the internet, but I'd like to use local name for simulator-only runs. So to put it in another way I want my app to request http://localalias/, but that system would actually fetch http://remotehost.com/.