class NetMatcher {

    public boolean matchInetNetwork(String hostIP) {

        InetAddress ip;

        try {
            ip = dnsServer.getByName(hostIP);
        } catch (UnknownHostException uhe) {
            LOGGER.info("Cannot resolve address for {}: {}", hostIP, uhe.getMessage());
            return false;
        }

        return matchInetNetwork(ip);

    }

    public  NetMatcher(String[] nets, DNSService dnsServer);
    public  NetMatcher(Collection<String> nets, DNSService dnsServer);
    public  NetMatcher(String commaSeparatedNets, DNSService dnsServer);

}