Ubuntu – Where to set external DNS in DNSMASQ

dnsmasqubuntu-12.10

I am getting "Query refused" from my network when I use nslookup google.com.

The DNS Server is 192.168.1.2 who runs dnsmasq.

It was working yesterday.

How can I solve it? I bet it's something about external DNS.

I need to add Google's DNS 8.8.8.8 and 8.8.4.4 so dnsmasq relays the request to those for external sites.

I read that I had to edit /etc/resolv.conf but that file says Do not edit this file by hand, your changes will be overwritten, so where can I add these servers to dnsmasq's config file?

Thanks!

Best Answer

Use the server option:

server=8.8.8.8
server=8.8.4.4

Search for "upstream" in dnsmasq(8).

Related Question