final InetNetworkBuilder inetNetwork = new InetNetworkBuilder(dnsServer);
for (String net : nets) {
try {
InetNetwork inet = inetNetwork.getFromString(net);
networks.add(inet);
} catch (UnknownHostException uhe) {
log("Cannot resolve address: " + uhe.getMessage());
}
}