I installed elementary OS on a hp laptop, and everything was working fine. Suddenly, after 3 days Internet connection does not work anymore. The laptop connects to the WiFi, but Internet won't work. I installed Elementary in dual boot, and when using Windows the laptop connects to the Internet normally...

1 Answer 1


I solved by overwriting the resolv.conf file with only two lines: nameserver nameserver

Now I fear I shouldn't have completely overwritten the file with only those two lines. I'm completely new to Linux; do you think it will generate more problems?

Thanks in advance!

  • 2
    There is no problem because this file gets overwritten if you reconnect to your wifi. However, it seems that your wifi router is not configured well enough to provide the actual DNS server to elementary OS.
    – lemonslice
    Jun 5, 2017 at 21:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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