Closed Immons closed 2 years ago
The error might be slightly misleading. But this just means that the DNS server auto discovery didn't work. Which is expected on iOS.
To get the DNS server(s) on mobile, you need to call some different APIs, and until .NET Core supports some way to get that information for you, you have to do that step yourself and initialize the client with the server(s) you found.
That being said, I'm not a mobile developer and especially not on iOS, so if there is some way to get DNS server information I'm happy to look at a PR
Trying to use this library, as standard .NET DNS implementation doesn't return nice host name. On iOS Simulator, below code returns fine:
on device it throws error: