FS#44644 - [networkmanager] dns=dnsmasq stalls Firefox, Epiphany on dual stack networks

Attached to Project: Arch Linux
Opened by John Pham (jhnphm) - Sunday, 19 April 2015, 12:02 GMT
Last edited by Toolybird (Toolybird) - Friday, 02 June 2023, 22:34 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Often, setting dns=dnsmasq is desirable in /etc/NetworkManager/NetworkManager.conf especially when using VPNs and local DNS at the same time. Please refer to http://blog.nixpanic.net/2013/03/use-dnsmasq-for-separating-dns-queries.html . Unfortunately this seems to break IPv6 in Firefox and Epiphany, as by default NetworkManager launches dnsmasq to only listen on 127.0.0.1 . Firefox and Epiphany will attempt to do dns queries over IPv6 first, and only after some time will fallback to IPv4. Chrome is not affected.

In order to fix this, a file can be created at /etc/NetworkManager/dnsmasq.d/ipv6_listen.conf with the contents listen-address=::1, which adds listening to the ipv6 loopback as well.


Additional info:
Tested w/ networkmanager 1.0.0-2


Steps to reproduce:
Edit /etc/NetworkManager/NetworkManager.conf and add dns=dnsmasq under [main]
Enable dual stack ipv6 on network
dig -6 google.com stalls, as well as attempting to watch youtube on Firefox or Epiphany
This task depends upon

Closed by  Toolybird (Toolybird)
Friday, 02 June 2023, 22:34 GMT
Reason for closing:  Upstream
Additional comments about closing:  Old and stale. If it's still an issue, it needs to be reported upstream as per PM's comment.
Comment by John Pham (jhnphm) - Sunday, 19 April 2015, 12:17 GMT Comment by John Pham (jhnphm) - Sunday, 19 April 2015, 19:50 GMT
Hm, it appears that changing that is not sufficient to fix the problem. The ordering of the upstream DNS servers also need to prioritize IPv6. See https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/936712 . I'll update the wiki article accordingly

[EDIT] Actually, Firefox stalling is due to it's improper implementation of happy eyeballs, combined w/ youtube's broken IPV6. https://bugzilla.mozilla.org/show_bug.cgi?id=1136484

Implementing this is still required for ipv6 transport to work where it previously didn't work w/ dnsmasq disabled, but maybe documenting it in the wiki is sufficient.
Comment by Jan Alexander Steffens (heftig) - Tuesday, 21 April 2015, 04:13 GMT

Loading...