Thanks for quick answer @eskimo.
I just added a way to send simple HTTP GET requests to:
- myapp.com
- api.myapp.com
- example.com
- apple.com
- google.com
And already from my iPhone connected to WiFi I was able to observe the following results:
- myapp.com ✅
- api.myapp.com ✅
- example.com ❌
- apple.com ✅
- google.com ✅
Same error: A server with the specified hostname could not be found.
for https://example.com.
Right now I cannot even open https://example.com on my MacBook Pro connected to WiFi (tried Safari and Google Chrome). My Internet provider is Vodafone and I am based in Berlin.
On cellular everything works for all of us.
All of my beta testers are based in Berlin. Two of them, for whom the issue manifested itself, use T-Mobile as the Internet provider.
I will now distribute this version to others to see which domains they can reach.
It appears to me that something is wrong with DNS resolution while on WiFi. I just tried manual DNS Configuration and entered 8.8.8.8, launched browser in incognito mode and voila—I was able to reach https://example.com. Switched back to Automatic and it is unreachable again.
I could suggest users to use manual DNS configuration, but I would really like to avoid this option. I don't want to welcome users installing my app with a suggestion that they should modify their DNS configuration.
I don't think it is the source code, because I'd say it is pretty standard and I haven't touched DNS or any low level networking stuff. Basically only sending HTTP Requests. Unless there is some setting in Xcode, entitlement, variable in Info.plist, capability, key or something related to signing certificate / profile, it has to be the network and its DNS resolution.
IP addresses of the domains apple.com
and google.com
can be resolved, no matter what DNS server is used. But for my domain, it doesn't seem to be the case. Sometimes it is resolved correctly and sometimes not. Is there a way I can have a DNS entry added to these DNS servers? Why isn't it already there?
While waiting for an answer for you, I will start exploring the option of contacting AWS and/or GCD support to try to resolve this.