-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
It seems like dns.lookup()
calls will not work in Node.js's Alpine Linux image versions when search domains are used.
Calls like dns.resolve()
won't work for a different reason which is C-Ares having issues with the feature.
Alpine Linux uses musl libc
instead of gnu libc
, the former didn't support search domains until version 1.1.13. It seems though that even on more recent versions of musl libc
, the bug persists.
cf: https://wiki.musl-libc.org/functional-differences-from-glibc.html#Name_Resolver_.2F_DNS
cf: gliderlabs/docker-alpine#8
To make reproduction of this issue easier, I created a repository with one Debian and one Alpine Dockerfile that you can find here:
https://github.com/Mickael-van-der-Beek/c-dns-test
Edit: Might also be related to mhart/alpine-node#107