Hello,
### For context, I am running a non-Debian based distro
### The below steps allowed me to get everything up and running
o I was able to get it everything working by actually going
through the openvpn package:
$ rpm -ql openvpn | grep -i resolv
/usr/share/doc/openvpn/contrib/pull-resolv-conf
/usr/share/doc/openvpn/contrib/pull-resolv-conf/client.down
/usr/share/doc/openvpn/contrib/pull-resolv-conf/client.up
o I read "/usr/share/doc/openvpn/contrib/pull-resolv-conf/client.up"
and saw the instructions to make
the necessary changes to /etc/resolv.conf
# INSTALL NOTES:
# Place this in /etc/openvpn/client.up
# Then, add the following to your /etc/openvpn/<clientconfig>.conf:
# client
# up /etc/openvpn/client.up
# Next, "chmod a+x /etc/openvpn/client.up"
o I copied both files
# cp /usr/share/doc/openvpn/contrib/pull-resolv-conf/client*
/etc/openvpn/
o Made them both executable
# chmod +x /etc/openvpn/client*
o I added the lines to the NewYork.opvn file:
up /etc/openvpn/client.up
down /etc/openvpn/client.down
o Ran openvpn with the above profile
# sudo openvpn /etc/openvpn/NewYork.ovpn
o Received "Initialization Sequence Completed"
o /etc/resolv.conf successfully updated.
o I also confirmed no DNS leak at
https://www.perfect-privacy.com/dns-leaktest/