PiHole Not Resolving

February 27, 2024, 16:57

ravencode.

Right, I've got PiHole installed according to the guides and I've got the interfaces configured correctly but only local sites will resolve. My devices report no internet connection if I connect them with PiHole as DNS, though I don't get any PiHole errors. I don't have much experience with networking in Linux so it might be something small.

oops.se

How do your "Upstream DNS Servers" config look like?

ravencode.

I have Google ticked for ipV4

oops.se

Add your home routers IP as "Custom 1"

ravencode.

I'm still getting no internet on devices

k9t33n

check that pihole is seeing those devices as active

ravencode.

How so?

k9t33n

it should say active devices or something

k9t33n

on the front page

k9t33n


ravencode.

Ok it isn't seeing them

k9t33n

then its probably something with how you set up upstream dns

k9t33n

try undo it and set it on a device individually

ravencode.

wdym?

ravencode.

I already have to set DNS to pihole manually since my ISP router is trash

k9t33n

oh

k9t33n

then its something with pihole or maybe the port

k9t33n

i dont know actually <@796000224690307072> you?

oops.se

You need to describe what you have done! 1. Is your PiHole also DHCP server? 2. Have you been changing the config on your devices manually? 3. What instructions have you followed, URL!

ravencode.

Some context btw; I had pihole & DHCP working fine but needed to upgrade to bookworm which caused problems, so did a full OS reinstall with some data retrieved like DHCP config, home directory and pihole teleporter backup 1) possibly, I copy pasted my old dnsmasq file I had before. 2) yes, I've always had to config my DNS manually per device or setup a DHCP server since my ISP router doesn't support changing DNS apparently. 3) I followed the pihole alternative 1 method here, also restored via teleporter: https://docs.pi-hole.net/main/basic-install

oops.se

But bookworm doesn't use dhcpcd, it uses Network Manager

ravencode.

Ah

k9t33n

oh no I didn't know any of this, I thought it was a safe assumption that it was a normal install and it wasn't just a copy of the old image

k9t33n

we need more information from the start!

oops.se

My recommendation is, start a fresh install

k9t33n

although it is my fault I made an assumption

ravencode.

Fresh pihole right

oops.se

Yes

ravencode.

Ok, I only did a few modifications so can probs note them somewhere

ravencode.

<@796000224690307072> btw does network manager have a way like dnsmasq to do custom DHCP server stuff?

oops.se

IDK

ravencode.

Okay, to YouTube tutorials

oops.se

Can you turn off the DHCP on the ISP router and let PiHole do DHCP and DNS.

ravencode.

Yes I can do that

ravencode.

Reinstalling my almost fresh install backup image rn

oops.se

Nice

ravencode.

Ok so I've got pihole installed again

ravencode.

Do I put the DHCP server config in /etc/dnsmasq.d or /etc/NetworkManager/dnsmasq.d

oops.se

In the web interface of PiHole

ravencode.

I couldn't get a second subnet working with the web interface

ravencode.

Since I want to have 1 subnet as pihole with the DHCP and one with my ISP router

oops.se

Well you could always do a lollipop design

ravencode.

Meaning?

k9t33n

I think it's where you set the DNS in pihole to its self or something

k9t33n

like a roundabout

k9t33n

or you set a order of DNS's that loop around to eachother

oops.se

If I understand you you wish to have two IP network but you have no extra interface on the Pi to do it?

ravencode.

I have a USB dongle as wlan1

ravencode.

sorry for not clarrifying that earlier

ravencode.

right now if I do nslookup google.com <pi ip> it doesn't load so

oops.se

Ok, just to clarify, a lollipop design is when you have one physical interface and in that physical interface you can create virtual interfaces

oops.se

It is also called "router on a stick" (Virtual interfaces through same physical port) concept.

ravencode.

Ah okay

ravencode.

Can someone help me debug what's wrong?

ravencode.

DNS doesn't work (no resolution) I have wlan1 as pihole interface I believe, DNS doesn't resolve here but wlan0 does.

frank_synopsis

Yeah, Piholes just don't work these days, trying to set one up myself and have had nothing but issues

oops.se

I have set up a lot of PiHoles and every one is working flawless.

oops.se

Im pretty sure you can adjust to witch interface/interfaces that PiHole should listen to, standard Linux behaviour.

ravencode.

I'll do that but have you got pihole as DHCP working on bookworm?

ravencode.

Or any DHCP

ravencode.

Cause I need to have a DHCP I can control to send traffic through PiHole (my ISP router doesn't "support" changing DNS)

oops.se

I haven't, as I am designing my "Pi Rack" and after that I have the idea to rebuild all services in my home lab/production.

oops.se

I will install a new Pi and start with DHCP tomorrow, have a couple Pi 3s laying around

justaccsolol

I can rn, i have a flesh install of raspberry OS lite for the pi zero

ravencode.

Anyone got any ideas?

k9t33n

None from me

ravencode.

Hm

ravencode.

Try docker next?

k9t33n

Yeah sure, docker solves everything

ravencode.

Got swarm setup today anyway so

ravencode.

Should be good

ravencode.

This is true

ravencode.

DNS seems to work but dhcp doesn't

k9t33n

This is widely strange to me

k9t33n

I haven't messed with DHCP enough to help you tho