From nodejs@v17 onwards there is a change where host names are selected based on the order provided from the DNS resolution: https://github.com/nodejs/node/pull/39987
Prior to this change node would re-order the DNS records such that the ipv4 address always came first, an option which can be manually selected with the following CLI flag:
node --dns-result-order=ipv4first script.js
Users of node >= 17 may notice a similar error to this when not using the above flag:
From
nodejs@v17
onwards there is a change where host names are selected based on the order provided from the DNS resolution: https://github.com/nodejs/node/pull/39987Prior to this change node would re-order the DNS records such that the
ipv4
address always came first, an option which can be manually selected with the following CLI flag:Users of node >= 17 may notice a similar error to this when not using the above flag:
this issue is open so we can track it while we figure out the best way to deal with it.