.ovpn dns


I’m trying to push a different DNS server from the one in my GLI settings for a specific .ovpn profile, as it has malware and ad blocking on this DNS for this server.

I’m attempting to put ‘push “dhcp-option DNS”’ within the .ovpn profile, but does anyone know if any openvpn client modifications are required for this or if it can be achieved simply by modifying the .ovpn file?

This doesn’t work in the router right now. But you can put in your ovpn and try. Seems it should try to execute some script.

You can also try to put up, down script in the ovpn, then write up down script to update the dns