Skip to content

No DNS Search Domain support in Alpine Linux image due to muslc #602

@Mickael-van-der-Beek

Description

@Mickael-van-der-Beek

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

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