DNS Query Issue in Apline Image with MUSL libc

Date: 4/1/2023 · Tags: #dev, #til

Until now I just know there're DNS issues in Apline image, which is major caused by musl libc. Check Racy conntrack and DNS lookup timeouts

All right, I know musl libc is different to gnu libc, usually user shouldn't feel differences in app level, but this definitely an user-aware issue.

  1. glibc could be configured to send those requests sequentially, with single-request and single-request-reopen options, but musl cannot.

  2. musl's resolver previously did not support the "domain" and "search" keywords in resolv.conf. This feature was added in version 1.1.13, but its behavior differs slightly from glibc's

The good news is query DNS sequentially is not the only one solution for netfilter race problem (UDP query would be dropped accidentally).

Refs: