curl -fsSL helper.sh/disable_openvpn_client_dns.sh | sudo bash curl -fsSL helper.sh/disable_openvpn_client_dns.sh | sudo bash -s -- --set-dns "114.114.114.114 223.5.5.5" OpenVPN client maintenance
A companion to install_openvpn_client_centos7.sh for hosts where the VPN should keep tunneling traffic but must stop forcing its own DNS (e.g. 10.7.7.53). It backs up the client config, comments out the DNS hooks, restarts the service, and can optionally write your own resolvers via --set-dns. Idempotent and reversible.