1

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 8.8.8.8, that's it. My router is at 10.0.1.1, and the Raspberry Pi (with dnsmasq) is at 10.0.1.3 (the screenshot shows it's using this as its server).

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

2
  • 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, 2013 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, 2013 at 23:51

1 Answer 1

1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .