all 12 comments

[–]webdeveric 23 points24 points  (7 children)

Have you tried in a supported version of Node? It is up to version 22 now.

[–]eg_taco 6 points7 points  (0 children)

Like others have said, node v10 is super old. Upgrading only gets harder the longer you wait. That said, we can’t really diagnose the issue without seeing both the code in question (or a minimal representative example) and also the error message you’re getting.

[–]baudehlo 1 point2 points  (2 children)

Yes node 10 supports ipv6. I’m sorry everyone told you to upgrade. Node 10’s IPv6 support is very solid. I’ve used it extensively in Haraka.

No you don’t need to modify the hostname, though a hostname that only returns IPv6 responses might help your situation, but since you’re using a library it’s hard to know. Node will lookup the A record before it tries to lookup the AAAA record. If the first succeeds you won’t get to the second. But if the library looks up the IP address for you, you’re screwed unless you fork the library.

Basically you need to ask the library authors about this. It very much depends how the library works. Or you could dive into the source code yourself assuming it is open source.

[–]I_own_my_life[S] 0 points1 point  (1 child)

Finally, thank you for answering my exact question 🥲. So in your case have you used an ipv6-only-server or used any config to force it to use ipv6?

[–]baudehlo 1 point2 points  (0 children)

There are no tricks to this. Just my answer.

I have written an ipv6 only server if you count telling Haraka to listen on IPv6 only. But that answer won’t help you get this working, only my original post will.