Funny issue with DNS resolution in edge
So I have been battling this all day, decided to see how small a reproducer I could get to.
DISCLAIMER: Im a PHP Developer, not a linux developer :)
The problem: When using Edge (or 20200917) tools like wget/curl do not work correctly, normally resulting in a dns issue.
My set up - a docker on Mac that works perfectly with Alpine 3.11/3.12 in docker images. I also have native dual stack ip4/ipv6 which is set up correctly and working well for years - all my local DNS set up is correct and works perfectly independent of this issue Im reporting.
The way it should work:
My reproducer is a TWO LINE dockerfile:
FROM alpine
RUN wget https://alpinelinux.org
Then build with docker build --no-cache .
This should result in downloading the index.html file correctly. When running FROM alpine, alpine:3.11, alpine:3.12 it does this, it works: see:
The issue: Now change to alpine:edge or alpine:20200917 and build the same dockerfile again,
FROM alpine:edge
RUN wget https://alpinelinux.org
Then build with docker build --no-cache .
this time you get:
wget: bad address 'alpinelinux.org'