$NetBSD: patch-ao,v 1.1 2006/03/06 22:49:16 joerg Exp $ --- src/lookups/dnsdb.c.orig 2006-02-14 16:38:38.000000000 +0100 +++ src/lookups/dnsdb.c @@ -116,7 +116,7 @@ if (equals != NULL) /* If the type is PTR, we have to construct the relevant magic lookup key. */ -if (type == T_PTR) +if (type == T_PTR && string_is_ip_address(keystring, NULL)) { char *p = keystring + (int)strlen(keystring); char *pp = buffer;