Please follow the below template, it will help us to help you!
One client per device on the ‘extended’ network.
Only 3 clients - the modem, “Docker” and my laptop (with pi-hole manually set as the DNS server).
I know very similar questions have been asked before, but my setup is different to those, and those solutions didn’t help. I have a Windows box running Ubuntu under VirtualBox, and pi-hole is running in a Docker container therein. My home network is 192.168.0., but within Docker the containers are 172.30.33. or 172.17.0.*. I want all of the devices to be listed in pi-hole because some are doing 400,000 DNS lookups a day to sites that don’t exist, and I want to track them down.
The relevant IP addresses I have are:
- 192.168.0.1 - Netgear D6200 modem with 192.168.0.66 set up as DNS server
- 192.168.0.66 - VirtualBox machine
- 172.17.0.1 - Docker bridged network
- 172.17.0.3 - pi-hole
The initial setup was to have pi-hole as the sole DNS server on the modem. Everything works fine, except most of the traffic in pi-hole appears to come from the modem rather than the source device.
I have tried this following which seemed to only make matters worse:
Disabling DHCP on the modem and enabling on pi-hole (after setting up over 30 static DHCP leases!). I rebooted the modem and pi-hole, but then the only wifi device that could connect was my laptop that had pi-hole entered as the DNS server. All the other devices (eg. Google Home) could no longer connect to wifi, even after turning off and on. It seemed bizarre that they could no longer connect to wifi.
Thinking they must really want the DHCP/DNS server to be 192.168.0.1, I changed the modem to be 192.168.0.254. I left pi-hole as 192.168.0.66 and doing DHCP and DNS. No change - wired devices were fine, but wifi devices couldn’t connect unless they specifically had 192.168.0.66 as the DNS server. Most of the wifi devices don’t let me set the DNS server, so this is not an option.
I went back to DHCP enabled on the modem and disabled on pi-hole and set up a /etc/hosts file as suggested here. No joy.