getSystemDns static method
Implementation
static Future<List<InternetAddress>> getSystemDns() async {
try {
final List<dynamic>? result = await _channel.invokeMethod('getSystemDns');
return (result ?? []).map((e) => InternetAddress(e)).toList();
} catch (e) {
debugPrint('[PlatformSystemDns] ⚠️ Failed to get DNS: $e');
return [];
}
}