Pi-hole: How do I force the WLAN IP address to 192.168.42.1 after installation?

Hello,

I installed Pi-hole and Hotspot on my Raspberry Pi 4. The static IP address on the network is 192.168.1.100.

But to access the Raspberry Pi without going through the network, I installed Hotspot, which has the IP address 192.168.42.1 on the WLAN.

When I installed Pi-hole, it configured the static IP address 192.168.1.100 instead of the one I want for the Hotspot, 192.168.42.1.

How can I change the Pi-hole settings to force the Hotspot to use the IP address 192.168.42.1? Thank you for your help.

Laurent

--------info--------

dietpi@DietPi:~$ ip a show wlan0
inet 192.168.42.1/24 brd 192.168.42.255 scope global wlan0

DietPi v10.3.3

  • Device model : RPi 4 Model B (aarch64)
  • LAN IP : 192.168.1.100 (eth0)
  • MOTD : Debian 13 Trixie
  • dietpi@DietPi:~$ uname --all
    Linux DietPi 6.12.75+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.75-1+rpt1~bookworm (2026-03-11) aarch64 GNU/Linux
  • Architecture | arm64

Simply go into PiHole settings and set PiHole to accept requests on all interfaces.

How do I do this?

Can it be done through the web interface at http://192.168.1.100:8089/admin/settings/all?

And in which Pi-hole settings menu?

By default the pihole WebUI listens on all interfaces, I think Joulinar was talking about the interface for receiving DNS requests.
So the webUI should be available via both IPs, 1.100 via Ethernet and 42.1 via wifi.

It’s within the DNS settings (Expert)

http://pi.hole/admin/settings/dns

There you can set the interface to Permit all origins

it’s ok
with 42.1 thank you for your help