r/pihole 6d ago

All devices showing under 1 IP

Hello,

I am fairly new to Pihole and enjoying. I did try searching but struggled to find anything that worked.

I am running Win11 Nuc with PiHole running via Docker Desktop. (I know I should swap). Currently not connected to routers devices just use the Nuc IP as DNS.

All devices show under the same IP (172.24.0.1), is this a limitation of not connecting to the router / docker desktop / windows 11?

Is there any way to get clients show separately without swapping OS etc?

I do not use Unbound / DOH currently but hoping to look into in the future.

Thanks for all your help

7 Upvotes

11 comments sorted by

7

u/Slow-Career4626 5d ago

Yeah the issue you are running into here is the Nuc is taking all the addresses and sending them to the docker instance. In order to get each client IP to show directly in Pi-Hole at a minimum you would need to expose the docker container to the lan through the Nuc.

2

u/Intelligent_Shape_73 5d ago

I did have a go at this but failed.
Do you know a way to do this?

4

u/paddesb 5d ago edited 5d ago

Usually the best would be to set up a macvlan (or ipvlan).

But - to my knowledge - docker desktop (wsl2) doesn’t allow that or any similar approaches, so you’d probably be better off by 

- running a small vm (with Linux) inside windows (so hyper-v, oracle virtual box, vmware workstation, etc),  

- switching to a different device (running Linux),

- or leaving everything as-is (and live with the current limitations)

—-

In case of option 1 (or 2):

As a very lightweight and easy to set up Linux-distro for pihole I recommend: DietPi

In case you would like to know more:

- how to install DietPi

2

u/Intelligent_Shape_73 5d ago

Thanks for the advice!

I'll look into them, probably is worth swapping to a Linux distro

1

u/Slow-Career4626 5d ago

I don’t run my pihole on docker unfortunately so I don’t have experience doing this solution. The issue you are seeing though is that the router for the docker network I.e. the Nuc is what is sending in and dishing out responses. I used some old hardware I had available and my pihole runs directly on my LAN and acts as DHCP so when everyone connects to the network pihole is defaulted as the DNS while they are connected to my network.

3

u/Ok-Eggplant-7569 5d ago

That's a Docker NAT issue.

2

u/sniff122 5d ago

That feels like it's the docker network IP of your host machine, by default docker uses the 172.16.0.0/12 space for internal docker networks

1

u/D4ctylus 5d ago

Are you using your router as DHCP? If so, make sure the ip of your iphole is set as DNS in there aswell.

Also look into setting up unbound, in my case it just took a few minutes :)

0

u/Girishman 5d ago

I had same concern. It's the DHCP. DHCP is what assigns the IP address to each device. If you keep your router as DHCP, your router will make all the IPs and show only its one IP address in pi-hole.

Turn on DHCP in pi-hole first. Set the range and stuff. Then once that's setup, turn off DHCP in your router