Skip to content

"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.

  1. Determine the ethernet device by running lspci | grep -i ethernet
  2. Install drivers if they are missing 1.1 Reinstall the linux kernel to autoconfigure
  3. Install dhcpcd (for static DNS ip i think) and dhclient
  4. edit /etc/resolv.conf to nameserver 9.9.9.9
  5. # systemctl enable systemd-networkd dhcpcd
  6. # systemctl disable systemd-resolved
  7. 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.

2 points5 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
2 · 75% up
Kind
Text
ID
yn2297

Author

3
posts
3
comments
0
media
View profile

6 comments

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

1 points

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

1 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.