I have installed Ubuntu 14.04 on my laptop. This laptop has a Qualcomm Atheros QCA9565 Wifi network card, but no ethernet port.

  • I can connect to the router.
  • I can ping to, but when opening google.com I get "server not found" in Firefox.
  • I can open websites by using their ip address.

I've opened the connection settings, changed the IPv4 method to "Automatic (DHCP) addresses only". I've set DNS servers to,

I've restarted the network:

sudo service networking restart

Then I get:

stop: Job failed while stopping
start: Job is already running: networking

So I rebooted to be sure, but no DNS.

How can I get DNS working?

  • Run nslookup www.google.com. The first line of the output should be the address of the DNS server that the system is trying to use. In your case, it should be or
    – Benoit
    Aug 11, 2014 at 11:48

2 Answers 2


You can set DNS server to the /etc/resolv.conf to check that there is no firewall or another issue.

nano /etc/resolv.conf

And change your name server to

  • And this will be overwritten by Network Manager the next time the OP will boot. Don't touch this file if the configuration is done via Network Manager (if done via the GUI, it is likely to be done via Network Manager).
    – Benoit
    Aug 11, 2014 at 11:47
  • Yes, do it this way instead: askubuntu.com/a/1050280 Dec 11, 2021 at 2:32

I had the same problem on Ubuntu Mate 17.04. I went to System -> Administration -> Network, selected DNS and added That fixed it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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