Dealing with DNS changes for OpenWrt + WG is unfortunately not the most straightforward thing. If you're okay using a public DNS instead of the ISP's DNS, you should be able to resolve without issue.
Here is a thread that I started a while ago because I wanted to similarly change the DNS, but I ended up not bothering and simply using a public DNS for everything...