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

Bug#563552: libc: resolver doesn't fallback to secondary dns-server when first one is ipv6 and unreachable



Aurelien Jarno scrisse:

> This is not observable here, with the same configuration as yours.
> Have you tried an other nameserver than 8.8.8.8, or 8.8.8.8 alone?
> 
> What's the output of 'strace getent ahosts www.debian.org'?

[...]
connect(3, {sa_family=AF_INET6, sin6_port=htons(53), inet_pton
(AF_INET6, "::ffff:8.8.8.8", &sin6_addr), sin6_flowinfo=16895189,
sin6_scope_id=0}, 28) = -1 ENETUNREACH (Network is unreachable)

Looks like another effect of bindv6only, as I have
"net.ipv6.bindv6only = 1".

Perhaps you have set it to 0, as it is working that way:

thetis:/home/lucab# sysctl net.ipv6.bindv6only=0
net.ipv6.bindv6only = 0
thetis:/home/lucab# getent ahosts www.debian.org
2001:888:2000:12::2 STREAM www.debian.org
2001:888:2000:12::2 DGRAM 
[...]

Ciao, Luca 

-- 
 .''`.  ** Debian GNU/Linux **  | Luca Bruno (kaeso)
: :'  :   The Universal O.S.    | lucab (AT) debian.org
`. `'`  			| GPG Key ID: 3BFB9FB3
  `-     http://www.debian.org 	| Debian GNU/Linux Developer

Attachment: pgpcfublEnjlM.pgp
Description: PGP signature


Reply to: