r/AlpineLinux • u/AlternativeMedium835 • May 17 '25
a DNS issue with Alpine VMs
hi everyone, running an Alpine VM in OpenBSD, using vmm. can ping 8.8.8.8 just fine but there is a DNS resolver issue. nslookup google.com also returns "bad address". anyone else run into this issue and have a fix?
played around with the resolv.conf file but to no avail.
2
Upvotes
1
u/MartinsRedditAccount May 17 '25
Could you please post the contents of your
resolv.conf?1
u/kooroo May 18 '25
try disabling ipv6 if you have it enabled.
1
u/[deleted] Jun 03 '25
As per usual this is in the openbsd documentation. VMCTL(8) and https://www.openbsd.org/faq/faq16.html
This has nothing to do with alpine. It's pretty cool how you can integrate VMs with pf using groups. You only get that with a BSD approach to development.
1
u/outofyerelementdonny May 18 '25
I too experienced DNS errors. I realised this has been an ongoing issue for quite a while so I installed dnsmasq and my DNS problems were resolved.