musl-1.2.1-r0 and/or busybox-1.32.0-r2 breaks nslookup return value
[Update: This may be a Docker for macOS issue... I'm Unable to reproduce on an edge EC2 instance, nor am I able to reproduce inside a docker container on that EC2 instance.]
I do some aports development from a docker
container. Recently, after doing an apk upgrade --available
, I am no longer able to git pull
-- instead I get the following message:
ssh: Could not resolve hostname gitlab.alpinelinux.org: Name does not resolve
fatal: Could not read from remote repository.
Poking around, it appears that musl-1.2.1-r1
or busybox-1.32.0-r2
(in edge) introduced new resolver behavior.
To reproduce...
% docker run --rm -it alpine:latest /bin/sh -l
b592db76dcae:/# nslookup gitlab.alpinelinux.org
Server: 192.168.65.1
Address: 192.168.65.1:53
Non-authoritative answer:
Name: gitlab.alpinelinux.org
Address: 172.105.69.85
** server can't find gitlab.alpinelinux.org: NXDOMAIN
b592db76dcae:/# echo $?
0
b592db76dcae:/# vi /etc/apk/repositories # switch to edge
b592db76dcae:/# apk -U upgrade musl
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
Upgrading critical system libraries and apk-tools:
(1/2) Upgrading musl (1.1.24-r8 -> 1.2.1-r0)
(2/2) Upgrading apk-tools (2.10.5-r1 -> 2.10.5-r2)
Executing busybox-1.31.1-r16.trigger
Continuing the upgrade transaction with new apk-tools:
(1/6) Upgrading busybox (1.31.1-r16 -> 1.32.0-r2)
Executing busybox-1.32.0-r2.post-upgrade
(2/6) Upgrading alpine-baselayout (3.2.0-r6 -> 3.2.0-r8)
Executing alpine-baselayout-3.2.0-r8.pre-upgrade
Executing alpine-baselayout-3.2.0-r8.post-upgrade
(3/6) Upgrading ca-certificates-bundle (20191127-r2 -> 20191127-r4)
(4/6) Upgrading ssl_client (1.31.1-r16 -> 1.32.0-r2)
(5/6) Upgrading scanelf (1.2.6-r0 -> 1.2.6-r1)
(6/6) Upgrading musl-utils (1.1.24-r8 -> 1.2.1-r0)
Executing busybox-1.32.0-r2.trigger
OK: 6 MiB in 14 packages
b592db76dcae:/# nslookup gitlab.alpinelinux.org
Server: 192.168.65.1
Address: 192.168.65.1:53
Non-authoritative answer:
Name: gitlab.alpinelinux.org
Address: 172.105.69.85
** server can't find gitlab.alpinelinux.org: NXDOMAIN
b592db76dcae:/# echo $?
1
b592db76dcae:/# nslookup google.com
Server: 192.168.65.1
Address: 192.168.65.1:53
Non-authoritative answer:
Name: google.com
Address: 2607:f8b0:400a:801::200e
Non-authoritative answer:
Name: google.com
Address: 172.217.3.174
b592db76dcae:/# echo $?
0
Edited by Natanael Copa