}
}
resolvers.put(_dnsserver.toString(), resolver);
}
} catch (UnknownHostException e) {
throw new NetworkException("Can't add DNS server", e);
}
try {
String key = _dnsserver.toString();
if (!resolvers.containsKey(key)) {
SimpleResolver simpleResolver = new SimpleResolver(key);
resolver.addResolver(simpleResolver);
resolvers.put(key, simpleResolver);
}
} catch (UnknownHostException e) {
throw new NetworkException("Can't add DNS server", e);
}
}