When a local resolver or Pi-hole gives a strange answer, I want to know what the page looks like with a clean lookup. curl can do its own lookup over HTTPS for a single command.
Give it the URL of a DoH server:
curl --doh-url https://dns.quad9.net/dns-query \
-s -o /dev/null -w '%{remote_ip} %{http_code}\n' https://example.com/
curl sends the DNS question for example.com to Quad9 over HTTPS, connects to the address it gets back, and prints that address with the status code. Run the same line without --doh-url and compare: different addresses mean your normal resolver changes the answer, for example a blocklist or split DNS at home.
The man page says the URL must be HTTPS, and certificate checks for the DoH server are separate from the ones for the site. -k does not touch them; there is --doh-insecure for that, which I would not use. Other large DoH servers work the same way, such as https://cloudflare-dns.com/dns-query.
This only changes the lookups of that one curl command, not your system. It also needs a curl with DoH support, which came in 7.62. A proxy set with -x or an https_proxy variable may do its own name lookup, in which case the DoH answer is not the one that counts.
Further reading: curl man page, everything curl: name resolving