How to fix dns leaks in Ubuntu 18, Debian 9, Kali Linux 2018

Hello, to prevent DNS leaks in Ubuntu 18, Debian 9, Kali Linux 2018 or any other Linux OS with systemd-resolved package, please do:
– Install openvpn-systemd-resolved package:
sudo apt install openvpn-systemd-resolved
– Add this new lines in .ovpn profile, that you use:
script-security 2
up /etc/openvpn/update-systemd-resolved
down /etc/openvpn/update-systemd-resolved
down-pre
dhcp-option DOMAIN-ROUTE .
Categories info, News