Dnsmasq refuses query after reboot

dnsmasq is started by the gnome network manager using the config option dns=dnsmasq however my dns is broken until I run service network-manager restart and doing dig google.com @localhost shows that dnsmasq is refusing queries but after I restart network manager queries work fine. What is causing dnsmasq to refuse queries after a reboot and how can I fix it?

Is port 53 being blocked by your firewall? You're probably using iptables if you didn't install anything else. You can install ufw if you want a simpler interface to figure out your iptables rules.

Thanks, but I don't think that's the issue given that netfilter isn't even compiled in my kernel. Not to mention simply restarting network manager fixes the issue. It only has an issue after a reboot.

Alright I figured it out. I had to go into network manager and disable IPv6. I'm assuming I had to do that because IPv6 is disabled at a kernel level for me since it doesn't seem to play nicely with my network for some reason. It's weird because without dnsmasq I can leave the IPv6 section of network manager configured and everything works fine but I guess dnsmasq doesn't like it.

Interesting... I just have ipv6 disabled on everything since I don't use it.

I'd like to use it but for some reason I end up getting RST ACK packets. Using IPv6 causes web pages take forever to load, videos to buffer, and when I do apt-get sometimes it'll get stuck downloading a package and I have to CTRL+C and try again. Turning it off fixes all of that so if I don't turn it off doing stuff online is a pain.