openvpn dnsmasq Ubuntu Server 14.04
Hi, I am a bit of a newbie but was hoping to get some help. I basically followed this tutorial http://parabing.com/2014/06/openvpn-on-ubuntu/ to set up openvpn on my digital ocean ubuntu 14.04 server. Everything works fine except for a few things. I basically want to use dnsmasq so VPN routes through the /etc/hosts file, so I can block ad servers using a list provided by http://hosts-file.net/?s=Download
At the same time, I also want to set my DNS servers to a specific provider.
No matter what I try, I can't seem to get the /etc/hosts file working with OpenVPN.
In the openvpn server config file I have DNS pointing to the servers I would like to use:
push "dhcp-option DNS 126.96.36.199"
push "dhcp-option DNS 188.8.131.52"
In the /etc/dnsmasq.conf, I have
which is the ip address VPN connects with on the server
I also have #bind-interfaces uncommented in the same file.
So when trying to specify which DNS servers to use, it seems the /etc/hosts file is overlooked.
Anyone have any ideas on what I can check or settings to adjust?
Any help appreciated.