Closed dareios1995 closed 1 month ago
Hi, I fear I cannot reproduce the problem on my test instance.
Also, this is rather a problem of the upstream curl that is packaged in alpine linux and should be reported here: https://gitlab.alpinelinux.org/alpine/aports/-/issues
I have a different setup with "rootless" docker but am experiencing an issue that sounds the same as @dareios1995. I think it has something to do with the musl
library used by DNS resolvers in some of the containers.
It appears that DNS only resolves names with both A
and AAAA
records without error. Inside the containers, nslookup
will return results for IPv4-only domains but also exit with an NXDOMAIN
error. Everything in NextCloud that involves looking up names without IPv6 records fails.
Hi, I fear this is most likely caused by an upstream change in the alpine image that we use internally. You might want to add a comment here: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15690 or create a new issue here: https://gitlab.alpinelinux.org/alpine/aports/-/issues
It probably has something to do with the c-ares components that use newer versions of curl. The newer version is probably used in current versions of alpine. A workaround that worked for me is to manually increase ndots from 0 to 3 in the resolv.conf file of each container.
The bug is at least known to the c-ares team and will hopefully be fixed soon, because my workaround is not persistent across backups/automatic updates.
Steps to reproduce
Expected behavior
curl shout resolve hostnames every time.
Actual behavior
curl cant resolve hostnames. Only ip-adresses are possible. Tools like ping, nslookup an dig can resolve hostnames like expected
in nextcloud, this means that the container does not have an internet connection and you cannot connect to other container services such as Collabora and the Talk-Signaling Server. I'm assuming that the connection is running in the background via curl
Other information
Host OS
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian
Output of
sudo docker info
Docker run command or docker-compose file that you used
Other valuable info
Curl Version in affected containers (Mastercontainer, Nextcloud):
curl 8.10.1 (x86_64-alpine-linux-musl) libcurl/8.10.1 OpenSSL/3.3.2 zlib/1.3.1 brotli/1.1.0 zstd/1.5.6 c-ares/1.33.1 libidn2/2.3.7 libpsl/0.21.5 nghttp2/1.62.1 Release-Date: 2024-09-18 Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp ws wss Features: alt-svc AsynchDNS brotli HSTS HTTP2 HTTPS-proxy IDN IPv6 Largefile libz NTLM PSL SSL threadsafe TLS-SRP UnixSockets zstd
Curl Version in working containers (e.g. Collabora)
curl 7.88.1 (x86_64-pc-linux-gnu) libcurl/7.88.1 OpenSSL/3.0.14 zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 libidn2/2.3.3 libpsl/0.21.2 (+libidn2/2.3.3) libssh2/1.10.0 nghttp2/1.52.0 librtmp/2.3 OpenLDAP/2.5.13 Release-Date: 2023-02-20, security patched: 7.88.1-10+deb12u7 Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL