nextcloud / nextcloudpi

📦 Build code for NextcloudPi: Raspberry Pi, Odroid, Rock64, curl installer...
https://nextcloudpi.com
2.52k stars 295 forks source link

Install script failing due to private DNS server requirement #1977

Open gitarman94 opened 3 weeks ago

gitarman94 commented 3 weeks ago

I may have found an issue with the installer script? I've got protected DNS, and force all traffic on my network to go through my DNS server, all other traffic gets blocked (for security reasons). The installer script kept failing saying it couldn't find the raw.githubusercontent.com website, but apt was able to install packages just fine prior to the attempted product install. After looking at the code, I found the below...

cat <<'EOF' >/etc/systemd/resolved.conf [Resolve] DNS=8.8.8.8 FallbackDNS=8.8.4.4 EOF

It appears that you're manually pointing the lxc to google as a valid DNS server to resolve addresses. In my case, this broke the installer as I'm blocking google DNS (for security/tracking purposes). I was able to modify the file post failure to point at my DNS server, and then copy/paste the remainder of the script, but this code should probably default to the base system's dns server (or utilize the address that was prompted for during the setup wizard).