DesktopECHO / Pi-Hole-for-WSL1

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

Could not resolve host/install #110

Closed fruitvenison closed 11 months ago

fruitvenison commented 11 months ago

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

update-rc.d: error: unable to read /etc/init.d/pihole-FTL 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

Fails to install. I'm on the latest Windows 11 build and unable to use this.

DesktopECHO commented 11 months ago

Open command prompt in Windows. What's the output from:

nslookup install.Pi-hole.net 9.9.9.9

fruitvenison commented 11 months ago

nslookup install.Pi-hole.net 9.9.9.9 Server: UnKnown Address: 9.9.9.9

*** UnKnown can't find install.Pi-hole.net: Server failed

DesktopECHO commented 11 months ago

Do you have restricted internet access? (Governmental, corporate, or otherwise)

fruitvenison commented 11 months ago

Nope, live in the UK. ISP is Virgin Media and I use the ProtonVPN via Split Tunneling for Chrome/Prowlarr for Sonarr purposes.

If I load install.pi-hole.net on a web browser it redirects to https://raw.githubusercontent.com/pi-hole/pi-hole/master/automated%20install/basic-install.sh

DesktopECHO commented 11 months ago

Your computer is unable to use Quad 9 for DNS requests. It's probably your VPN causing the issue.

Uninstall the failed installation: C:\Program Files\Pi-hole\Pi-hole Uninstall.cmd

Then disconnect from the VPN temporarily and retry the install script.

Alternatively, you can edit PH4WSL1.CMD and search/replace all occurrances of 9.9.9.9 with a DNS server that works on your network. You can find which DNS server to use by runnning ipconfig /all | find "DNS Server"

fruitvenison commented 11 months ago

You are 100% correct.

Disconnected the VPN. Tested. Working.

Stupid, stupid, stupid.

I wrongly assumed split tunneling was working. Obviously not.

Re-trying install now.

Appreciate the help.