@SuppressWarnings("unchecked")
	public void showCache() {
		ArrayList<HostRecord> validRecords = new ArrayList<HostRecord>();
		synchronized(hostCache) {
			for (HostRecord hostRecord: hostCache.getItems()) {
				if (hostRecord.getIpAddresses().size() > 0) {
					validRecords.add(hostRecord);
				}
			}
		}
		Collections.sort(validRecords);
		for (HostRecord hostRecord: validRecords) {
			//System.out.println(hostRecord.getDomainName() + " " + hostRecord.getIpAddresses());
			for (IPAddress address: hostRecord.getIpAddresses()) {
				System.out.println(address.toString() + " " + hostRecord.getDomainName());
			}
		}
	}