OK so I have my Raspberry Pi running a DNS server (dnsmasq), and I have my router set up to use it as the DNS server for the whole network. This was working perfectly until a few hours ago when I added some stuff to the hosts file (all valid). Now, for example, going to local.dev in chrome gives "Oops! Google Chrome could not find local.dev"... Even apple.com (which isn't even mentioned in the hosts file) is invalid. That's the only non-hosts site I've found that's still invalid

THe really weird thing is, dig apple.com from one of my network computers (inside the network, and accessing my raspberry pi DNS server) returns WORKING IP addresses, which work in chrome! Screenshot shows dig apple.com results.. Any help would be great, thanks

enter image description here

EDIT: Ok so the contents of my resolv.conf is just nameserver, that's it. My router is at, and the Raspberry Pi (with dnsmasq) is at (the screenshot shows it's using this as its server).

I have restored the hosts file but the same problem persists. Very strange

  • 1
    Could you add the contents of /etc/resolv.conf and the ip address of the router and dnsmasq server to the question? They might give a better grasp at the issue. – GnP Jul 13 '13 at 22:13
  • Have you try to restore previous contents of hosts file and test whether still works ? And than add new stuff - line by line - and test it. – furas Jul 13 '13 at 23:51

Is the problem still unsolved? Have you restarted everything after you made the change(s), including the dnsmasq service, the browser, and/or even the entire system?

To me, I have to restart the dnsmasq service to make it listen to the correct address

| improve this answer | |

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.