Try this:
```
echo "nameserver 8.8.8.8" >> /etc/dnsmasq.upstream
```
It will fix your problem.