title: Is there a way to get the iOS simulator to access a FQDN redirecting to my localhost?
body: <p>I am running a local web server with SSL enabled that my app needs to log into. I have a domain name whose A-record is set to <code>127.0.0.1</code>, which allows for local development using loopback with an <code>nginx</code> server with different subdomain configurations for services on the app I have hosted locally. The problem is that, in the iOS simulator, the domain resolves to the device's localhost and not my machine. I can't use the IP address of my machine because I need the domain for <code>nginx</code> to redirect to the proper <code>vhost</code> (also SSL and OAUTH would get mad).</p>
  <p>Is there any way to use a custom DNS server for lookup in the simulator? Either that, or can I edit the hosts file to set the domain to my device's LAN IP instead of localhost? Any other ideas?</p>