DesktopECHO / Pi-Hole-for-WSL1

Ad-blocking DNS server for Windows • Unbound pre-configured • Deployment ready in minutes • Does not require hypervisor/docker
348 stars 53 forks source link

curl: (6) Could not resolve host: install.Pi-hole.net #63

Closed jantekataw closed 2 years ago

jantekataw commented 2 years ago

Unsure why this is happening, I'm able to resolve via web browser.

Pi-hole for Windows v.20220618 Set location for 'Pi-hole' install folder or hit enter for default [C:\Program Files] -> Pi-hole install foler: "C:\Program Files\Pi-hole" Pi-hole WebGUI (AdminLTE) will listen on port 80 Press any key to continue . . .
Downloading minimal Debian image . . . Downloading prerequisite packages . . .

Installing Debian -> Compacting install -> Install Pi-hole prerequisites This will take a few minutes to complete . . . Extracting templates from packages: 100% Update setupVars.conf to use IP address 10.5.0.2/16 on interface eth4 . . .

Launching Pi-hole installer...

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: install.Pi-hole.net sed: can't read /var/www/html/admin/settings.php: No such file or directory sed: can't read /var/www/html/admin/settings.php: No such file or directory sed: can't read /opt/pihole/piholeDebug.sh: No such file or directory sed: can't read /opt/pihole/piholeDebug.sh: No such file or directory /bin/bash: line 1: /etc/dnsmasq.d/05-pihole-custom-cname.conf: No such file or directory chown: invalid user: ‘pihole:pihole’

Pi-hole Web Admin, /bin/bash: line 1: pihole: command not found

SUCCESS: The scheduled task "Pi-hole for Windows" has successfully been created.

jantekataw commented 2 years ago

I figured out what the issue is. I use a NordVPN client (with split tunneling) on this computer. After I disabled it the installer worked fine. If I connect to it after Pi-Hole is set up, clients are unable to resolve. Not sure if this is a bug or a limitation of Windows.

DesktopECHO commented 2 years ago

Hi... Restart Pi-hole after you connect to the VPN, it will pick-up your new network settings: SCHTASKS /Run /TN:"Pi-hole for Windows" if you have it running in the background or C:\Program Files\Pi-hole Launcher.cmd

jantekataw commented 2 years ago

Awesome, this works, thanks for the help!