Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DnsResolver uses hardcoded DNS server #71

Closed
LumiProj opened this issue Sep 21, 2020 · 10 comments · Fixed by #75 or #128
Closed

DnsResolver uses hardcoded DNS server #71

LumiProj opened this issue Sep 21, 2020 · 10 comments · Fixed by #75 or #128

Comments

@LumiProj
Copy link

Hi,

I am using Xamarin Forms and recently updated with latest Nuget package, it works fine in simulator but on connection it is crashing when I run on physical device.

Thanks

@vitalyster
Copy link
Owner

Please provide a traceback

@LumiProj
Copy link
Author

Hi,

Following is the exception which I am facing

List of configured name servers must not be empty.
Parameter name: servers..

@vitalyster
Copy link
Owner

Do you mean Android emulator or iOS simulator? Which version? Which os version is on device?

@LumiProj
Copy link
Author

Hi,

Everything is working fine in Android/IOS Simulator, I am facing this crash in physical devices in Android/iois.

@vitalyster
Copy link
Owner

I need the exact OS version for simulators and physical devices you are using

@LumiProj
Copy link
Author

LumiProj commented Sep 24, 2020

Hi,

Physical Devices
iPhone 11 Pro , iPhone 11 Pro MAX, iPhone 6.

Simulators
iPhone 6 - iPhone 11 Pro max.

@vitalyster
Copy link
Owner

This is NOT operating system version, let me know operating system version on simulator (e.g. iOS 13.7) and on physical device (e.g. iOS 14.0)

@LumiProj
Copy link
Author

I have tested on 13.7 and 14.0 as well both on simulators and physical devices.

@vitalyster
Copy link
Owner

OK I see DnsClient package does not work on Xamarin correctly for both Android and iOS. Reverted back to own DNS resolver. Issue fixed on master, fixed version should be released on NuGet shortly

@vitalyster
Copy link
Owner

We should revert back to DnsClient, but not use no-args constructor and pass hardcoded DNS server on mobile platforms, see MichaCo/DnsClient.NET#17 (comment)

@vitalyster vitalyster reopened this Sep 23, 2021
@vitalyster vitalyster changed the title Crash new version DnsResolver does not work correctly on mobile platforms Sep 23, 2021
@vitalyster vitalyster changed the title DnsResolver does not work correctly on mobile platforms DnsResolver uses hardcoded DNS server Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment