rwhoisd 1.5.9 issuing referral on all queries?
Joe Pruett
joey at clean.q7.com
Thu Jun 2 22:14:04 EDT 2005
i saw this question in the archives and was seeing the same problem
myself. i think i have tracked it down to a weird ip address formatting
issue in common/ip_network.c. my patch that seems to fix it is below. i
can't see why colons were used to separate the numbers instead of dots
like normal. this breaks the internal logic when trying to determine if
the ip address is within one of your auth areas. after making this change
you have to rebuild your indexes as well. but it seems to be doing the
right thing after this patch is applied.
diff -u rwhoisd-1.5.9.4/common/ip_network.c rwhoisd-1.5.9.4/common/ip_network.c.joey
--- rwhoisd-1.5.9.4/common/ip_network.c 2005-01-28 17:15:37.000000000 -0800
+++ rwhoisd-1.5.9.4/common/ip_network.c.joey 2005-06-02 19:11:10.000000000 -0700
@@ -305,7 +305,7 @@
if (ni->af == AF_INET)
{
if (str_len < 15) return NULL;
- sprintf(str, "%03hu:%03hu:%03hu:%03hu",
+ sprintf(str, "%03hu.%03hu.%03hu.%03hu",
ni->prefix[0], ni->prefix[1],
ni->prefix[2], ni->prefix[3]);
return str;
More information about the Rwhois
mailing list