Actions

Right In The Pi-hole: Difference between revisions

From Rabbi Blog

(Created page with "Ran into issues with ubuntu-26.04-standard container in ProxMox in regards to dig: there was no output. Tested 22.04 and it worked. Resorted 25.04. =Setup= ==Pi-hole== <pre> sudo apt update && sudo apt upgrade -y sudo apt install curl -y sudo systemctl stop systemd-resolved sudo systemctl disable systemd-resolved sudo rm /etc/resolv.conf echo "nameserver 1.1.1.1" | sudo tee /etc/resolv.conf curl -sSL https://install.pi-hole.net | sudo PIHOLE_SKIP_OS_CHECK=true bash...")
 
mNo edit summary
 
Line 1: Line 1:
Ran into issues with ubuntu-26.04-standard container in [[ProxMox]] in regards to dig: there was no output.  Tested 22.04 and it worked. Resorted 25.04.
Ran into issues with ubuntu-26.04-standard container in [[ProxMox]] in regards to dig: there was no output.  Tested 22.04 and it worked. Resorted 25.04.


=Setup=
=Pi-hole=
==Pi-hole==
==Setup==
<pre>
<pre>
sudo apt update && sudo apt upgrade -y
sudo apt update && sudo apt upgrade -y
Line 21: Line 21:
Go to http://IP:80/admin and login
Go to http://IP:80/admin and login


=Unbound=
jnTracks pointed me this way...
==Setup==
<pre>
sudo apt update
sudo apt install unbound -y
sudo nano /etc/unbound/unbound.conf.d/pi-hole.conf
</pre>
<pre>
</pre>
==Get Root Hints==
<pre>
curl -o /var/lib/unbound/root.hints https://www.internic.net/domain/named.root
</pre>
==PreFlight Check==
<pre>
sudo systemctl restart unbound
sudo systemctl enable unbound
</pre>
Test both a pass and a servfail
<pre>
dig pi-hole.net @127.0.0.1 -p 5335
dig sigfail.attrib.org @127.0.0.1 -p 5335
</pre>


=Point Pi-Hole to Unbound=
# Open your Pi-hole Admin Web Interface in a browser.
# Navigate to Settings > DNS.
# Uncheck any public Upstream DNS Servers you had enabled (e.g., Google, Cloudflare).
# Under the Custom DNS (IPv4) fields on the right, check the box and input:
#* 127.0.0.1#5335
# Click Save at the bottom of the page.


[[Category:Pi-hole]]
[[Category:Pi-hole]]

Latest revision as of 22:16, 16 July 2026

Ran into issues with ubuntu-26.04-standard container in ProxMox in regards to dig: there was no output. Tested 22.04 and it worked. Resorted 25.04.

Pi-hole

Setup

sudo apt update && sudo apt upgrade -y
sudo apt install curl -y
sudo systemctl stop systemd-resolved
sudo systemctl disable systemd-resolved
sudo rm /etc/resolv.conf
echo "nameserver 1.1.1.1" | sudo tee /etc/resolv.conf
curl -sSL https://install.pi-hole.net | sudo PIHOLE_SKIP_OS_CHECK=true bash

Selections

Do the setup questions...

Password

pihole setpassword

URL

Go to http://IP:80/admin and login

Unbound

jnTracks pointed me this way...

Setup

sudo apt update
sudo apt install unbound -y
sudo nano /etc/unbound/unbound.conf.d/pi-hole.conf

Get Root Hints

curl -o /var/lib/unbound/root.hints https://www.internic.net/domain/named.root

PreFlight Check

sudo systemctl restart unbound
sudo systemctl enable unbound

Test both a pass and a servfail

dig pi-hole.net @127.0.0.1 -p 5335

dig sigfail.attrib.org @127.0.0.1 -p 5335

Point Pi-Hole to Unbound

  1. Open your Pi-hole Admin Web Interface in a browser.
  2. Navigate to Settings > DNS.
  3. Uncheck any public Upstream DNS Servers you had enabled (e.g., Google, Cloudflare).
  4. Under the Custom DNS (IPv4) fields on the right, check the box and input:
    • 127.0.0.1#5335
  5. Click Save at the bottom of the page.