Hello everyone, I hope you're having a good day, thank you for trying to help me.
Expected Behaviour:
1- IP shown on the query logs should be client local address IP
2- When DHCP is activated on pihole and desactivated on router, dhcp clients should be able to see DCHP server using command below:
nmap --script broadcast-dhcp-discover -e enp2s0
Actual Behaviour:
1-It's showing Pihole IP address
2- Pihole DCHP is not found even on the same machine that it is running on
- Router DHCP ON, Pihole DHCP OFF (this config works):
nmap --script broadcast-dhcp-discover -e enp2s0
Starting Nmap 7.60 ( https://nmap.org ) at 2020-01-31 11:58 CET
Pre-scan script results:
| broadcast-dhcp-discover:
| Response 1 of 1:
| IP Offered: 192.168.1.28
| DHCP Message Type: DHCPOFFER
| Server Identifier: 192.168.1.254
| IP Address Lease Time: 12h00m00s
| Subnet Mask: 255.255.255.0
| Router: 192.168.1.254
| Domain Name Server: 192.168.1.92
|_ Broadcast Address: 192.168.1.255
Router DHCP OFF, pihole DHCP ON (this config does not work)
nmap --script broadcast-dhcp-discover -e enp2s0
Starting Nmap 7.60 ( https://nmap.org ) at 2020-01-31 11:59 CET
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 10.31 seconds
Debug Token:
zadk9czen8
Additional information
Alright, more info on this issue:
Pihole works perfectly fine, however it shows it's own IP address as you saw.
Because everyone recommends to activate pihole DHCP instead of router DHCP to solve this issue, I did it, then only my static IP devices were able to keep internet connection and no DHCP client were able to find pihole DHCP server
my DNS configuration now is the following:
Domain clients->samba DNS (192.168.1.91) --forward--> Pihole DNS 192.168.1.92 -->Google DNS
Non Domain clients --> Router DNS (192.168.1.254) --forward-->pihole DNS 192.168.1.92 -> Google DNS
I'm using Ubuntu 18.04 and Netplan with networkd as renderer.
I hope all this information will help you to identify the issue and help me, thank you very much for your time and efforts.
Have a nice day.