From c86d801b0faa453f9c4fbb2a12682a39abce16de Mon Sep 17 00:00:00 2001 From: orbiter Date: Sun, 6 Nov 2005 22:12:08 +0000 Subject: [PATCH] removed dyndns domains from dns caching git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1039 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/http/httpc.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/de/anomic/http/httpc.java b/source/de/anomic/http/httpc.java index 4f3d11a3e..5119052f7 100644 --- a/source/de/anomic/http/httpc.java +++ b/source/de/anomic/http/httpc.java @@ -393,7 +393,7 @@ public final class httpc { try { ip = InetAddress.getByName(host).getHostAddress(); if ((ip != null) && (!(ip.equals("127.0.0.1"))) && (!(ip.equals("localhost")))) { - nameCacheHit.put(host, ip); + if (host.indexOf("dyndns") < 0) nameCacheHit.put(host, ip); return ip; } return null; @@ -412,6 +412,7 @@ public final class httpc { */ public static boolean dnsFetch(String host) { if ((nameCacheHit.get(host) != null) /*|| (nameCacheMiss.contains(host)) */) return false; + if (host.indexOf("dyndns") < 0) return false; try { String ip = InetAddress.getByName(host).getHostAddress(); if ((ip != null) && (!(ip.equals("127.0.0.1"))) && (!(ip.equals("localhost")))) {