This question already has an answer here:

I am using Ubuntu 17.04 and connect Internet from WiFi hotspot using my android mobile. It successfully connected and get ip address but Internet is not working. When I ping Google, it shows output as

ping: google.com: Name or service not known

while the connection information showing 1 to 72 MBPS speed. I also found another question with same issue but got no benefit.

  • internet is working if i connect it with usb cable or LAN etc.

marked as duplicate by Sumeet Deshmukh, Zanna, David Foerster, Pilot6, Charles Green Jun 12 '17 at 13:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • askubuntu.com/a/909214/665251 See if it works for you! and do you have added in DNS settings? – Sumeet Deshmukh Apr 26 '17 at 16:49
  • I check it but it is not working. Actually, I think that this is not a problem of DNS because internet is working properly when i connect with USB cable or LAN. It is not working only in wifi connection. – Puneet Dixit Apr 27 '17 at 5:36
  • yes, i missed that what does lshw -C network says? – Sumeet Deshmukh Apr 27 '17 at 5:48
  • 1
    Thanks @SumeetDeshmukh , the article shared by you, helps me and I am posting answer below which works for me. – Puneet Dixit Apr 27 '17 at 17:17

All you need to do is Open a terminal by pressing Ctrl + Alt + T and run:

sudo nano /etc/NetworkManager/NetworkManager.conf

At the bottom of this file, copy and paste the following:


after pasting it press Ctrl+ X and then type Y to Save it and press Enter

You can double check if the changes got saved by running the first command again and check if the edited line is there

Now you need to start your network manager for changes to take effect

sudo service network-manager restart

And WiFi should work again, Try to connect it

reference: Belkin F7D1101 v1 works under Ubuntu 16.10 but not under Lubuntu 17.04

Not the answer you're looking for? Browse other questions tagged or ask your own question.