Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2143

getaddrinfo ENOTFOUND error on Windows 10 due to failed fallback to ipv4 after ipv6 lookup fails

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.5
    • Affects Version/s: 3.2.7
    • Component/s: None
    • None
    • Environment:
      Windows 10 with ipv6 enabled, driver used by Compass

      Connections that do not use an IP address are failing on some Windows 10 systems.

      The reported problem is with specifying the family as ipv6 or not specifying a family:

      dns.lookup(host, (error, address, 6))
      dns.lookup(host, (error, address))
      

      The default fallback from ipv6 to ipv4 is not working with hostnames (IP addresses succeed). One possible workaround is to drop support for ipv6:

      dns.lookup(host, (error, address, 4))
      

            Assignee:
            daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
            Reporter:
            brian.blevins@mongodb.com Brian Blevins
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: