A DNS leak is a computer security problem that occurs when you request encrypted data on systems such as VPN, proxy, but your device uses the Internet Service Provider (ISP) Domain Name System (DNS) to do your request.
When DNS leak problem occurs, your Internet Service Provider (ISP) will know which websites you are visiting because it’s the ISP’s DNS server that does the name resolution.
This post provides information you need to fix DNS leak in Linux Ubuntu; But configuring network settings to avoid DNS leak on most Linux distributions uses the same approach.
How To Fix OpenVPN DNS Leak In Linux
- Go to network connection
- Select the connection you want to setup and click edit
- In the ipv6 method select ignore
- Select the ipv4 tab
- In method, if your system automatically obtains the IP address, select automatic (DHCP) addresses only
- In DNS server, type your VPN DNS IP address or you can use any public DNS server of your choice.
- click save
- Restart the network connection