I have upgraded from Ubuntu 16 to Ubuntu 18. And since I restarted my machine, I am not able to connect to the internet. And this seems to be a very popular issue, because I am reading and applying the whole morning different solutions given (for example, tried this one), but that does not seem to do the trick for me.

My laptop is connected to the wifi network. In fact we even have 2 in the house and I am able to successfully see and connect to both of them. However, when I ping www.ubuntu.com, I receive "unknown host" as response. I am able to ping to though. Any other application is also unable to connect.

Any help is appreciated :)

Resolved this issue by adding nameserver in the file /etc/resolv.conf. And then restarted using sudo /etc/init.d/networking restart. The solution to my issue was given by Zoltán Süle, in the comments of a similar issue like that of mine.

closed as off-topic by karel, Arronical, Eliah Kagan, Rinzwind, Zanna Apr 4 '18 at 11:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Bug reports and problems specific to development version of Ubuntu should be reported on Launchpad so that developers can see, track and fix these issues." – karel, Arronical, Eliah Kagan, Rinzwind, Zanna
If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.