Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

removed dyndns domains from dns caching

orbiterc86d801b0faa
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")))) {