Automatic Install: Dns Failed: resolve dns name

stb

New Member
Aug 15, 2024
7
0
1
I'm trying to install Proxmox 8.4, and I have prepared an ISO via proxmox-auto-install-assistant prepare-iso proxmox-ve_8.4-1.iso --fetch-from http --url https://www.example.com/pve-answer.toml. When I boot that in a test VM in an existing cluster, I end up with this error message:

Code:
Fetching answers for automatic installation

INFO: Fetching answer file in mode Http:
INFO: URL specified in ISO
INFO: Gathering system information.
INFO: Sending POST request to https://www.example.com/pve-answer.toml'
INFO: Fetching answer file via HTTP failed: https://www.example.com/pve-answer.toml: Dns Failed: resolve dns name 'www.example.com:443': failed to lookup address information: Name or service not known
ERROR: Aborting: Could not find any answer file!

(I've changed the real hostname to www.example.com)

What's really weird is that I can ping www.example.com (which is a CNAME, which in turn has A and AAAA records) from the console, so DNS is working, but I cannot use wget to fetch any resource from that URL, with the same DNS error. I can fetch other URLs just fine. Of course, I can fetch the URL from by browser, curl and wget from other hosts. I'm fairly certain that this is not a local network problem, but I'm completely stumped what would cause this.
 
so DNS is working, but I cannot use wget to fetch any resource from that URL, with the same DNS error.
If you cannot fetch it via e.g. curl (did you use -X POST?), neither will the auto-installer be able too.
Can you provide the output of curl -v -X POST https://www.example.com/pve-answer.toml?
You can also try curl -v -X POST --resolve example.com:443:<server-ip> https://www.example.com/pve-answer.toml, replacing <server-ip> with the actual IP address of the service that serve the answer file.

What's the content of /etc/resolv.conf after the fetch failed?

Does your DHCP server serve the correct DNS host?
Your DNS server is configured to serve on port 53, right? (As a DoH/DoT-only server cannot be used as system DNS).