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

Bug#428434: libc6: Resolver prefers IPv4 to IPv6 in some cases

Package: libc6
Version: 2.3.6.ds1-13
Severity: normal


In some cases the resolver prefers IPv4 to IPv6. This happens when:

- the A-RR is a RFC 1918 Address
- there is a more specific route for this address


$ ip route list table all
local dev lo  table 255  proto kernel  scope host  src

$ host -t any test1.libc6test.swapon.de
test1.libc6test.swapon.de has IPv6 address 2001:6f8:12ec::1
test1.libc6test.swapon.de has address

$ host -t any test2.libc6test.swapon.de
test2.libc6test.swapon.de has IPv6 address 2001:6f8:12ec::1
test2.libc6test.swapon.de has address

$ host -t any test3.libc6test.swapon.de
test3.libc6test.swapon.de has IPv6 address 2001:6f8:12ec::1
test3.libc6test.swapon.de has address

$ telnet test1.libc6test.swapon.de
Trying 2001:6f8:12ec::1...

$ telnet test2.libc6test.swapon.de
Trying 2001:6f8:12ec::1...

$ telnet test3.libc6test.swapon.de
Trying 2001:6f8:12ec::1...

The releases "2.3.2.ds1-22sarge6" (Sarge) and "2.5-9+b1" (Lenny) are not

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages libc6 depends on:
ii  tzdata                        2007b-1    Time Zone and Daylight Saving Time

libc6 recommends no packages.

Reply to: