Lots ? cant gethostbyaddr errors from nnrpd

Katsuhiro Kondou kondou at nec.co.jp
Wed Aug 23 06:56:31 UTC 2000


In article <20000822165620.A18630 at myhakas.matti.ee>,
	Vallo Kallaste <vallo at matti.ee> wrote;

} nnrpd[69524]: ? cant gethostbyaddr myhakas.matti.ee Undefined error: 0 -- using IP address for access
} 
} The particular host has correct nameserver info. The error message comes
} from nnrpd.c which has special section between ifdef DO_NNRP_GETHOSTBYADDR.
} Can somebody explain why the ipaddress to hostname mapping is failing or
} whatever it really is. INN version is 2.3-20000817.

Hm, it seems that Address2Name() fails.  Can you examine
how it's going by attached?
-- 
Katsuhiro Kondou

--- nnrpd/nnrpd.c.orig	Sat Aug 19 00:20:57 2000
+++ nnrpd/nnrpd.c	Wed Aug 23 15:53:08 2000
@@ -388,13 +388,17 @@
 	if (memcmp((POINTER)&ap->s_addr, (POINTER)*pp,
 		(SIZE_T)hp->h_length) == 0)
 	    break;
+	else
+	    syslog(L_NOTICE, "Address2Name %x %x", (int)ap->s_addr, *(int *)*pp);
     if (*pp == NULL)
 	return FALSE;
 #else
     /* We have one address. */
     if (memcmp((POINTER)&ap->s_addr, (POINTER)hp->h_addr,
-	    (SIZE_T)hp->h_length) != 0)
+	    (SIZE_T)hp->h_length) != 0) {
+	syslog(L_NOTICE, "Address2Name %x %x", (int)ap->s_addr, *(int *)hp->h_addr);
 	return FALSE;
+    }
 #endif
 
     /* Only needed for misconfigured YP/NIS systems. */



More information about the inn-workers mailing list