-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DNS resolution issue in Alpine Linux 3.20. Ping/wget only work if nslookup first #403
Comments
Update: The exact same issue seems to happen on a fresh install of Alpine 3.18.0. |
I'm getting the same issue on a qemu installation, Alpine 3.19 was working fine. One thing I do notice is that it seems to be using ipv6 by default, but not sure if this is somewhat related |
@mauromorales I thought it might have been related to IPv6 also.. I disabled it and still no luck sadly :( |
Thanks for keeping me posted. Will try other things and update if I find something |
Did you run |
Do I need to do that even before I run setup-alpine? It seems even the installer cannot download from the mirrors some of the time :( |
In my case I'm not sure if the issue is Alpine itself or the fact that it is running on qemu and I don't think qemu comes with an ipv6 dns resolver |
I tried this and it works setup-interfaces
vi /etc/udhcpc/udhcpc.conf # Uncomment RESOLV_CONF="NO"
rc-service networking restart
ip addr
echo "nameserver 8.8.8.8" > /etc/resolv.conf
echo "nameserver 8.8.4.4" >> /etc/resolv.conf |
Oh wow thanks so much, I'll give that a shot! |
This is very strange behavior on a fresh installation of Alpine Linux v3.20.0 directly onto a VM.
When I try and
ping
orwget
or evenapk update
, it will always fail to resolve the domain name unless I manually run annslookup
command first.E.g.
I'm not sure why this is happening - any ideas? It's so painful to even install packages because mirrors fail until I first run
nslookup
.The text was updated successfully, but these errors were encountered: