I'm actually working on a website development and I configured all the needed hostname on my /etc/hosts files.
Actually in our office we use an internal DNS for the QA servers and we override requests with hostfiles because hostname must be equal in both case, anyway.
I write (server-side) on the page the IP address that is serving that page and in my iOS Simulator there's no way to show up 127.0.0.1 it always show to me the QA IP.
I read online that the entry on the hosts file must be wrote one-per-line or the Simulator will not work.
Actually I have:
127.0.0.1 it.domain.test.com 127.0.0.1 us.domain.test.com
Before I had:
127.0.0.1 it.domain.test.com us.domain.test.com
Side notes: My OS: OSX 10.10 Yosemite Here we are behind a proxy.