Bugzilla – Bug 310406
IPv6: Resolving breaks when changing nameserver from IPv6 to IPv4
Last modified: 2008-12-07 22:21:54 UTC
Set nameserver in /etc/resolv.conf to IPv6 address, work in Firefox, then have NetworkManager reconnect and reset the nameserver to IPv4 address, Firefox breaks: socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 24 connect(24, {sa_family=AF_INET6, sin6_port=htons(53), inet_pton(AF_INET6, "::ffff:172.16.0.1", &sin6_addr), sin6_flowinfo=16781484, sin6_scope_id=0}, 28) = -1 EAFNOSUPPORT (Address family not supported by protocol) I'm actually not sure if the connect() should work or not... Maybe it's kernel fault?
Not just NetworkManager presumably but regular ifup/ifdown if the nameserver changes via dhcp as well.
Yes, NetworkManager was just an example real-world scenario.
Hmm, Firefox is using libc resolver stuff. So the connect is initiated from the glibc resolver. I'm not sure if that is supposed to work. Would be nice to get some input from glibc guys. Is Firefox really the only network application which fails in that case?
I can verify that this also fails when using a simple ping.
AFAICS there is no Mozilla code involved here. Reassigning
Works for me in 11.0 and newer.