Ping hostname error

Asked by Yuan Youlei on 2018-07-04

When I ping google.com, or other hostnames, it prompt “unknown name or server”, while ping 8.8.8.8, it's ok.

I find all solutions, find that "downgrade to resolvconf_1.78ubuntu2_all", it will be fixed.

the lasted version 1.79 will add "127.0.0.53 " to the first line /etc/resolv.conf, I guess this is the root cause.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu resolvconf Edit question
Assignee:
No assignee Edit question
Last query:
2018-07-04
Last reply:
4 hours ago

If you run:

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

Then try, is it OK?

Yuan Youlei (youleiy) said : #2

I have tried this method, It's Ok, but the reslov.conf will be rewrite by netmanager after reboot.

Yuan Youlei (youleiy) said : #3

I have tried this method, It's Ok, but the reslov.conf will be rewrite by netmanager after reboot.

Is the system a laptop or is it a desktop that never moves?

Launchpad Janitor (janitor) said : #5

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.