Help in setting up PiHole

Kernels & Hardware, configuring network, installing services

Help in setting up PiHole

Postby hellbraker » 2017-08-25 03:48

Hi, I'm new to Linux and I have just installed Debian as a Virtual Machine in Windows 10. I installed using both the ISOs from
Now I have installed latest curl. But when I use
Code: Select all
curl -sSL | bash
I get an error saying it can't resolve.

Are there any dependencies that must be installed prior cos I think my sources in sources.list cant be reached (I installed Debian offline).

The instructions for installing Pi Hole were:
Code: Select all
su root
apt-get install curl
nano /etc/network/interfaces
    auto eth0
    iface eth0 inet static
su root
curl -sSL | bash
pihole -a -p newpassword

set router manual DNS settings
primary = (your pi-hole static ip)
secondary = (emergency google backup)
apply & push router changes across network
connect to (use pi-hole ip)

My router is at and I have not changed anything as above yet.

Posts: 2
Joined: 2017-08-25 03:33

Re: Help in setting up PiHole

Postby kopper » 2017-08-25 04:40

You can test if the address is resolvable to you at all. Check the output from following command. If you can't get an IP address, it might be worth checking your current DNS settings. Sometimes, visiting the site might help to resolve the issue, but I guess that's kinda hit and a miss.
Code: Select all
dig +short

As noted in PI-Hole webpage, that method of installation is not safe. They instruct to install it locally (i.e. download first and install on your machine). If you have problems with installation itself, I believe you get better help from Pi-Hole forums. They seemed to have your issue well documented and even solved cases.
Debian 9.4 Stable with i3
Secure your stuff: Securing Debian Manual
Don't break your stuff: Source List Management DontBreakDebian
Posts: 115
Joined: 2016-09-30 14:30

Re: Help in setting up PiHole

Postby hellbraker » 2017-08-25 06:06

That gave me this :
bash: dig: command not found

So I must be missing it.
Posts: 2
Joined: 2017-08-25 03:33

Re: Help in setting up PiHole

Postby debiman » 2017-08-26 20:32

^ :sigh:

first of all, you shouldn't blindly execute stuff from the internet on your system.

have you tried enetering that url into your browser to see what it actually is & does?

try that.

maybe it redirects to another url; then you could try using that other url instead.

but first, have a good look at the script, and at the project's github page.
User avatar
Posts: 2405
Joined: 2013-03-12 07:18

Return to System configuration

Who is online

Users browsing this forum: No registered users and 8 guests