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 142.251.40.228 = success
ping www.google.com = fails

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

IPv6
[Peer]
PublicKey = redacted
AllowedIPs = 0.0.0.0/0,::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 google.com -4n.