config dnsmasq
option localservice '0' #enable queries from vpn
I spent the better part of three hours trying to figure out why local DNS lookups weren't working from my Android phone, thinking it was an OpenVPN option or a strict firewall. I was unable to resolve any addresses at all with just 192.168.1.1 in the OpenVPN config. The Google DNS servers worked just fine. I had actually started to write a post with all of these configs in it when the answer came to me.
Maybe this should be in the OpenVPN documentation? Maybe not. Is this option a bad idea? I disabled it to make local DNS lookups work from my VPN. If it is a bad idea, I suppose I could type in the IP addresses with my stubby fingers on my phone instead.
I will be using this to access my home network securely from elsewhere. Separately, I have a VPN client to my provider on my phone if I want to be private.
Thanks!