Problem in Proxmox installing Homeassistant: curl: (6) Could not resolve host:

After watching the videos (Part 1 and 2) to install Proxmox and Tailscale
I wanted to install Homeassistant.

Iin Proxmox I copied:
bash -c “$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/vm/haos-vm.sh)”

The output was:
curl: (6) Could not resolve host: raw.githubusercontent.com

To confirm that there are problems with connectivity I tried:
ping -c 4 8.8.8.8
and have no problems but when I tried:
dig google.comdig google.com
I have: status: SERVFAIL
The DNS in Proxmox has the typical Tailscale:
nameserver 100.100.100.100
search tail-----.ts.net

I could try to reinstall Proxmox form scratch but I followed all the instructions in Part 1 and Part 2 of the videos from Tailscale to the letter. I am afraid that this problem will persist. So, before performing a complete reinstall, I would like to know if any of you have an idea of what is going on, and if there is a way to solve this problem.
Thanks

This has pretty much nothing to with HA. Check if tailscale is running properly with systemctl status tailscaled and tailscale status. I recommend installing systemd-resolved and using the stub listener.
To check if DNS itself works try nslookup raw.githubusercontent.com 8.8.8.8.

I’d recommend you go back and check your network configuration, noting it is physically connected (the pings work) but not logically connected (your data goes nowhere).

Subnetting is often an issue. List each network IP address and follow the data flow to see where the bottleneck is.

Check your DNS too.

If the Proxmox documentation is inadequate, please document what works so others can benefit from your experience.