1

I had the same issue with this question about iOS app with server error.

One of my iOS app user was located in China (running on iPad mini/ iOS 8), the answer about DNS Pollution solved my issue.

My wondering is that my app got this error when sent an url:

Error Domain=NSURLErrorDomain Code=-1003

"a server with the specified hostname could not be found"

but got the correct data in Safari with the same url.

I suppose the response should be no difference(either data or error) on any app sending the same request ... if this issue is caused by DNS server?

If not... what would be the case and what can I do to prevent it from my app?

Community
  • 1
  • 1
bluenowhere
  • 2,683
  • 5
  • 24
  • 37

1 Answers1

0

It should be a DNS issue. If you are using a subdomain, you need to add a new A record with your domain provider to redirect it to your server.

Hope that helps.

Dean
  • 21
  • 3