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 https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/.
Now I have installed latest curl. But when I use
Code: Select all
curl -sSL https://install.pi-hole.net | 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
        address 192.168.1.100
        netmask 255.255.255.0
        gateway 192.168.1.1
reboot
su root
curl -sSL https://install.pi-hole.net | bash
pihole -a -p newpassword

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

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

Thanks
hellbraker
 
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 install.pi-hole.net


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.2 Stable with i3
Secure your stuff: Securing Debian Manual
Don't break your stuff: Source List Management DontBreakDebian
kopper
 
Posts: 70
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.
hellbraker
 
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
debiman
 
Posts: 1545
Joined: 2013-03-12 07:18


Return to System configuration

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable