[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#470289: libc6: getaddrinfo() with disabled ipv6



forcemerge 435646 470289
thanks

André Wöbbeking a écrit :
> On Monday 10 March 2008, Aurelien Jarno wrote:
>> Aurelien Jarno a écrit :
>>> Andre Woebbeking a écrit :
>>>> Package: libc6
>>>> Version: 2.7-9
>>>> Severity: important
>>>>
>>>> Hi,
>>>>
>>>> I disabled ipv6 with
>>>>
>>>> alias net-pf-10 off
>>>>
>>>> in /etc/modprobe.d/aliases but getaddrinfo() doesn't care and
>>>> sends ipv4 AND ipv6 queries to my router. I think this is a bug.
>>>> Is there a way to turn off the ipv6 queries?
>>> What does "lsmod | grep ipv6" returns?
>> That means ipv6 is disabled. I don't see how it can make queries
>> using ipv6 in that case.
> 
> This is from tcpdump -n port 53:
> 
> 13:24:06.877009 IP 192.168.178.183.50438 > 192.168.178.1.53: 42587+ AAAA? www.heise.de. (30)
> 13:24:06.899561 IP 192.168.178.183.53666 > 192.168.178.1.53: 34231+ A? www.heise.de. (30)
> 
> The first query is ipv6, the second ipv4, right?
> 

I understand. It does ipv6 DNS query using IPv4 transport. That has
nothing to do with disabling IPv6 in the kernel, that's why "alias
net-pf-10 off" does nothing.

If you router does not support that, it's a bug in your router, not in
the glibc, though I agree an option to disable IPv6 queries would be nice.

This has already been reported as bug#435646, merging the bugs.

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net



Reply to: