Corun
By:
Corun

Avoid DNS Leaks on a OpenVPN server (ubuntu 16.04 distro)

December 9, 2016 487 views
DNS VPN Ubuntu 16.04

Hello !

So i was in need for a personal VPN and i heard of the VPS-OpenVPN thing, i decided to create one, i don't know anything in linux.

I followed this tutorial : https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04

and everything works ! the only thing that bothers me is that when i go on https://www.dnsleaktest.com/ to test my VPN, it does work but when i try the extended test i see a lot of DNS that aren't forwarding via the VPN and are just my actual DNS servers.

it doesn't really bothers me since my IP changed and stuff but is there something i can do to really forward all the traffic to the VPN and get none of my country DNS used anymore ?

hope you understood what i'm asking.

regards :)

3 Answers

do you have these lines (uncommented) in your server.conf:

push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"

how about:

push "redirect-gateway def1 bypass-dhcp"

Have another answer? Share your knowledge.