Prevent resolv.conf being overwritten

Hi

Have Openvpn installed. Getting DNS leaks so had to update my ovpn files with

script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf

After running openvpn get message

/etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /etc/resolvconf/run/resolv.conf

I used

sudo apt-get install resolv.conf

and it works vpn dns correctly in resolv.conf.

resolv.conf getting overwritten after awhile with

/var/run/connman/resolv.conf

Is there way to keep resolv.conf with symlink of

/etc/resolvconf/run/resolv.conf

I can keep backup of original if needed to change.

Or is there a better way of doing this.

Thanks

You’re not the first with this problem.

Suggest you search for “resolv.conf vpn” in the search box at the top

You may wish to read this, it seems a fix might be on the way.

Yeah I’m on staging repo. This is fixed now resolv.conf doesn’t get overwriteen on reboot anymore

Thanks for confirming this @the_bo