deno icon indicating copy to clipboard operation
deno copied to clipboard

DNS name resolution stopped working for IPv6-only Redis host

Open cy6erskunk opened this issue 1 year ago • 1 comments

Version: Deno 2.0.3

Hostname resolution for IPv6-only Redis server started to throw ENOTFOUND after updating to Deno 2.0.x. Rolling back to the latest Deno 1.x solves the problem.

Redis Client Error Error: getaddrinfo ENOTFOUND foo-bar.upstash.io
    at __node_internal_captureLargerStackTrace (ext:deno_node/internal/errors.ts:93:9)
    at __node_internal_ (ext:deno_node/internal/errors.ts:246:10)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:37:26)
    at ext:deno_node/internal_binding/cares_wrap.ts:85:9
    at eventLoopTick (ext:core/01_core.js:175:7) {
  errno: -3007,
  code: "ENOTFOUND",
  syscall: "getaddrinfo",
  hostname: "foo-bar.upstash.io"
}

I'm using npm:[email protected].

cy6erskunk avatar Oct 27 '24 19:10 cy6erskunk

Do you see the same error with Deno 2.0.2?

We changed dns.lookup a little bit in https://github.com/denoland/deno/pull/26264 , and that might have affected it.

Also how does the same code work in Node.js?

kt3k avatar Oct 29 '24 11:10 kt3k

Do you see the same error with Deno 2.0.2?

Yes

Also how does the same code work in Node.js?

I don't know, It's been a Deno project since the very beginning, but it works with Deno 1.46.2

cy6erskunk avatar Oct 29 '24 14:10 cy6erskunk

Do you see the same error with Deno 2.0.2?

Yes

Sorry, I made mistake in checking the shipped version of #26264

Could you also check with Deno 2.0.0?

kt3k avatar Oct 29 '24 14:10 kt3k

Could you also check with Deno 2.0.0?

I can confirm that it works in Deno 2.0.0

Would you have any idea when #26621 will be released?

cy6erskunk avatar Oct 29 '24 18:10 cy6erskunk

@cy6erskunk later tonight, you can run deno upgrade canary to get a canary version with the fix included.

bartlomieju avatar Oct 29 '24 21:10 bartlomieju

Seems to be working in 2.0.4, thanks a lot!

cy6erskunk avatar Oct 30 '24 09:10 cy6erskunk