nimanr
Posts: 3
Joined: Wed Jun 24, 2015 11:14 am

DNSMASQ doen't resolve addresses unless you restart dnsmasq

Sat May 21, 2016 12:46 pm

I used https://frillip.com/using-your-raspberr ... h-hostapd/ tutorial to turn my RPi3 into an access point. After all steps, wifi clients can find SSID and connect to it and all the services which are IP-based works perfect. For example, I can ping any IP. But the problems is that I can't ping any web domain and in browsers, no web page loads but I if I use IP, it loads page.
I found out that restarting DNSMASQ service solves the problem like this:

Code: Select all

sudo service dnsmasq stop
sudo service dnsmasq start
but when I restart RPi the problem comes back until I restart the service.
Here is my dnsmasq.conf

Code: Select all

interface=wlan0
bind-interfaces
server=8.8.8.8
domain-needed
bogus-priv
dhcp-range=172.24.1.50,172.24.1.150,12h

epoch1970
Posts: 5132
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: DNSMASQ doen't resolve addresses unless you restart dnsm

Sat May 21, 2016 1:20 pm

What a good skin can do to a blog post.

I would suspect you have a startup order issue, where dnsmasq starts before wlan0 is properly up. Removing bind-interfaces from the dsnmasq config should help.

If this solves it, you should be fine without bind-interfaces. Otherwise the idea would be to instruct systemd to start dsnmasq dead last, but I have no idea of how to do that besides hacking it into /etc/rc.local...
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

nimanr
Posts: 3
Joined: Wed Jun 24, 2015 11:14 am

Re: DNSMASQ doen't resolve addresses unless you restart dnsm

Sat May 21, 2016 2:32 pm

Great It did the trick.

Return to “Troubleshooting”