Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

npm should use the new verbatim flag for dns queries #18941

Open

Description

@igalic

since nodejs/node#14731 was landed, node can now finally resolve DNS the way the underlying OS is configured to do.
I suggest npm adapts this for its DNS queries.

What's going wrong?

When trying to use npm on an IPv6 only network, currently, npm (thanks to node's DNS lib) will prefer IPv4 addresses, even if it has no way to connect to such an address.

How can the CLI team reproduce the problem?

This is tricky…
Unless you have an IPv6 only VM anywhere around it's really non-trivial.
It's even trickier to get IPv6 addresses for domains that only have IPv4 addresses to begin with!
i.e.: You'd have to implement some form of DNS64 (and/or NAT64)

supporting information:

really, any… npm / nodejs / os.
IPv6 only is the important part.
This has been an issue (regression…) for a long, long time.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions