OVPN profile batch replace from IP to hostname

How can I batch replace the IP addresses with hostnames for existing user profiles?
Currently, when I open a user’s profile and go to the link to download the profile, the extracted ovpn file contains an IP address.
Is there any way to batch replace all the IP addresses with hostnames for all users?

The IP address is set in the top right settings with the host address option on single host setups. With an enterprise subscription the option is in the host settings under the hosts tab.