Trouble with IPv6 and VPN configuration file for wireguard

My VPN provider uses a configuration generator to create wireguard configuration files to be used with wg-quick up.

If I generate the config with an IPv4 endpoint everything works as expected. If I select an IPv6 endpoint I can connect to the VPN and ping ip addresses but name resolution doesn’t work.
For example with the IPv6 configuration
ping = success
ping = fails

Only the ‘Peer’ section is different between the two files.
PublicKey =
AllowedIPs =,::0/0
Endpoint = <= IPv4 address

PublicKey = redacted
AllowedIPs =,::0/0
Endpoint = [xxxx:xxxx:xx:xxx::xxxx]:51820 <= IPv6 address

What could be the cause of IPv6 not working? I’ve other reports similar to this but I’ve been unable to find a solution

I’m not sure, but when I ping with name I always use ping -4n.