"Temporary failure in name resolution" error
SOLUTION (solved it myself): After a recent update, my ethernet drivers disappeared (r8168). I installed them and then reinstalled the linux kernel itself so it autoconfigures.
- Determine the ethernet device by running
lspci | grep -i ethernet - Install drivers if they are missing 1.1 Reinstall the linux kernel to autoconfigure
- Install
dhcpcd(for static DNS ip i think) anddhclient - edit
/etc/resolv.conftonameserver 9.9.9.9 # systemctl enable systemd-networkd dhcpcd# systemctl disable systemd-resolved- reboot and pray to god
When i try to ping any address i get a "Temporary failure in name resolution" error, and when I try to ping addresses like 1.1.1.1, 4.4.4.4 and 8.8.8.8 I get a "Network is unreachable" error. I use ethernet and NetworkManager. I've tried stopping, starting and restarting systemd-resolved.service and NetworkManager.service. Changing /etc/resolv.conf manually to nameserver 8.8.8.8, nameserver 4.4.4.4 or nameserver 1.1.1.1 doesn't help, I've heard somewhere that it must be a symlink to some other file, but I don't know about that.
Any help is appreciated, thank you in advance!
Edited 5 Nov 2022. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 2 · 75% up
- Kind
- Text
- ID
- yn2297
6 comments
Try doing sudo dhcpcd wlan0 —nohook mtu
Or give ur device a static ip address on your wifi
Very odd. Did you reseat the ethernet cable or swap cables? Reboot any network hardware?
Hopefully you didn't install mutually exclusive network mgmt software.
Good luck
I’m sorry I can’t help any further, but I believe this has something to do with dhcp. I had the same issue but can’t remember what I did exactly. Try ‘’’ sudo systemctl restart dhcpd ‘’’. Also check the arch wiki
Deleted before we saved it.
Does it work after you suspend Or hibernate?