Meraki recommends that client vpn must be set up using hostname. I am unable to connect when i do that. i can connect via IP but the problem is i have two internet connections and when one link goes off it would take me lengthy amount of time to reconfigure all client PCs
Meraki recommends using the hostname precisely for the reason you mentioned. In the event of a WAN failover, the hostname should update to the new WAN IP.
In regards to getting it working, using a hostname vs an IP address shouldn't make a difference as long as the hostname resolves correctly.
Are you using the Meraki dynamic hostname or do you have another hostname defined?
Does the hostname resolve to the correct IP on the client PC?
I am using the Meraki dynamic hostname. It does not resolve correctly on the client PC. That is the reason I am unable to connect using the Meraki dynamic hostname. Is there a way to make this work?
When you say doesn't resolve correctly, is it resolving to any IP address at all?
Is your client PC using a well known internet DNS or an internal DNS?
You'll need one of those set up in order to resolve domains external to your environment, including the Meraki dynamic domain name for your MX.
You need to ensure that your internal DNS can forward requests that it doesn't have the answer for. These should be forwarded to another DNS that does have the answer.
Typically you would set up to forward to an external, top level DNS, such as 184.108.40.206 (Google's DNS) or 220.127.116.11 (Cloudflare DNS
Hmmmm.... okay. Not sure what is going on here, but I've got some thoughts.
I'm not entirely sure, but looking at the trail of posts you may not be addressing point 1.