[rbldnsd] Disabling ipv6-specific tests
Jeff Dairiki
dairiki at dairiki.org
Fri Aug 2 20:40:05 MSK 2013
On Fri, Aug 02, 2013 at 08:51:01AM -0400, Michael Orlitzky wrote:
> On 08/02/2013 01:50 AM, Michael Tokarev wrote:
> > 02.08.2013 05:19, Michael Orlitzky wrote:
> >> Now there's just the minor issue where everything goes to hell when
> >> daemon_addr='localhost'. I don't think it can simply be changed to
> >> '127.0.0.1', since there are people running with only ipv6. I like the
> >> idea of checking for getaddrinfo and using it if possible, but I'm not
> >> the one doing the work, so if there's an easier way to get just the
> >> tests working I'll take it.
> >
> > Sure. Fix the bug on your system and be done with it :)
> >
>
> Unfortunately I use the glibc that everyone else will be using!
Out of curiosity, which version of glibc is that?
To repeat myself, I do feel that it is a "bug" (or, at least,
"something worth fixing") when "rbldnsd -b localhost" does not work.
Sure there is a workaround, and maybe the real bug is with glibc, but
certainly it is confusing to users. (It would confuse me.)
After further googling, it looks like maybe using getaddrinfo will not
solve the problem.
https://bugzilla.redhat.com/show_bug.cgi?id=496300
Michael (Orlitzky), what does this produce for you?
python -c "from socket import *; print getaddrinfo('localhost', 42, AF_INET, SOCK_DGRAM)"
Does the same problem show up if you do?
# Build rbldnsd with ipv6 support
./configure --enable-ipv6
make
# Run with ipv6 disabled
./rbldnsd -4 -n -b localhost/5300
I will work up a patch which avoids attempting to bind the same address
twice. I don't think it should be too painful.
More information about the rbldnsd
mailing list