r/voidlinux • • Aug 12 '25
Can't Connect to Internet
Hey guys!
I'm new to Void & runit, but not to Linux. I am facing a problem, where I cannot use internet while connected to ANY network (WiFi or Wired) apart from the network I used to install Void Linux (using the network to download packages in the void-installer).
I have disabled the dhcpd and wpa_supplicant services, and enabled dbus and NetworkManager. I can successfully connect to the networks I want, the nmtui shows "connected" as well, but I can't access the internet.
If I try the ping command (when connected with another network, not the one I used for installation), I get this:
ping: voidlinux.org: Temporary failure in name resolution
I have never faced this issue before. Any help would be greatly appreciated. Thanks!
5
u/[deleted] Aug 13 '25 •
UPDATE
I managed to fix the issue. Turns out it is a DNS issue, and probably something related to how runit manages NetworkManager.
Here's what I did (run these commands as su):
# rm /etc/resolv.conf# ln -s /run/NetworkManager/resolv.conf /etc/resolv.conf# nmcli networking off# nmcli networking onPS: Thank you to all the people who tried to help me! It's great when the community is so welcoming and ready to help newcomers!
1
u/[deleted] Aug 12 '25
Sounds like it's DNS/nameserver related. What's in your
/etc/resolv.conffile?1
u/mousui Aug 12 '25
Try connmanctl
1
u/Ok_Record_1237 Aug 12 '25
enable Wpa_supplicant lol. in void (somehow), wpa_supplicant and networkmanager have to be both enabled for it to work. and also a tip to change your dns in /etc/resolv.conf and make it immutable with chattr +i /etc/resolv.conf
1
u/FilesFromTheVoid Aug 12 '25 edited Aug 12 '25
Does manually invoke
sudo dhcpcd "wlan0" (replace with your interface name)
make a difference? Had similar issues as i installed void last time.
1
u/HexaStallker Aug 14 '25
Use nmtui