The issue I am facing:
when my DNS is set to pihole, it doesn't resolve DNS requests. I'm quite new to all this and have tried following several tutorials and other suggestions from this discourse and the pihole documentation but not to much luck.
Instead, it would seem you have been using some third-party tools that conflict with Pi-hole's configuration, by restricting it to consider only your wireguard interface:
*** [ DIAGNOSING ]: Networking
[✓] IPv4 address(es) bound to the wg0 interface:
10.100.0.1/24
[✓] IPv6 address(es) bound to the wg0 interface:
fd08:4711::1/64
*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✗] Failed to resolve www.d3h3emqn8ms7rt.cloudfront.net on eth0 (192.168.1.28)
[✓] www.d3h3emqn8ms7rt.cloudfront.net is 0.0.0.0 on wg0 (10.100.0.1)
Revisit your third-party tool documentation for support and information on the intended effect of that 02-pivpn.conf.
Meanwhile, to get Pi-hole working, remove that conflicting interface line.
Then run