Daft question - Gateway IP? Main router or pihole?

I am considering swapping my dhcp server to my pihole.

Before I do can someone please clarify what gateway this field is referring to?
My main asus (RT-AC86U) gateway is 192.168.1.105. My pihole 192.168.1.215
I assume I complete this field with 192.168.1.105 as it will still operate as the gateway router but not dhcp anyore?

Thanks

Think I just found the answer -

Why is a default gateway important for Pi-hole? - FAQs - Pi-hole Userspace

So yes 192.168.1.105 for the pihole gateway.
Makes sense - PPPoe gateway to the internet (via ISP bridge).

Encountered 2 issues switching over:

There was a problem applying your settings.
Debugging information:
PHP error (2): fsockopen(): unable to connect to 127.0.0.1:4711 (Connection refused) in /var/www/html/admin/scripts/pi-hole/php/FTL.php:47

and

FTL failed to start due to process is missing required capability NET_ADMIN pihole

Fixed with NetAdmin switched on (portainer)

Next hurdle lost access to most devices:

Warning in dnsmasq core

no address range available for DHCP request via eth0

Just to save you some waiting, the devs are going to request a Debug Log from you so you might want to go ahead and submit one. Navigate to Tools > Generate debug log, then submit the token it generates for their review.

3 Likes

I take it you are running your Pi-hole as a Docker container?

Depending on your chosen Docker network mode, Docker would isolate a container into a separate network, i.e. by default, Docker's network isolation would prevent that your clients' broadcast for a DHCP server would reach a DHCP server inside a Docker container.

You should consider reading the suggestions from Docker DHCP and Network Modes - Pi-hole documentation to get Pi-hole's DHCP server operational under Docker.

1 Like

You got it yep.
Great I'll have a read of that later - thanks

All sorted now thanks
Yes changed bridge to host , also net_admin added and viola!
dhcp working perfectly. All clients directing to pihole and more accurate data coming in.

Been running overnight perfectly. Just one question.
I see some devices have the host name (piholelan) appended and some don't.
Is this because the ip hasn't renewed yet? (24 hour lease)

Thanks

I see now only the ip static assignments are appended with the host name

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.