Overview
The initial goal was, that my openvpn client configuration is able to set the DNS server.
Somehow that was not possible, even though we have set dhcp-option DNS 10.8.0.1
in the ovpn file.
But nevertheless, perhaps you want to get rid of your Network manager fingering in your resolv.conf convfig, then follow below:
Steps to Do
From https://askubuntu.com/a/623956/733411
- Edit
/etc/NetworkManager/NetworkManager.conf
- Change to
dns=none
Now feel free use your /etc/resolv.conf
e.g. like that:
nameserver 9.9.9.9 # quad 9
nameserver 149.112.112.112 # secondary quad 9
nameserver 2620:fe::fe # IPv6 quad 9