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
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