Pi-Hole server is not working

Hello Community,

I want to replace my AdGuard Home with Pi-Hole. I started with a RHEL server installed Pi-Hole, allowed HTTP service and port 53 UDP/TCP. Prior to installation, I set up a static IP. I was able to use Pi-Hole UI. For testing, I used the Pi-Hole server’s IP for my laptop DNS; however, I can’t access any pages, such as Google. Then I installed it in an Ubuntu server, added 53 UDP/TCP in iptables, and I’m still not able to make it work. From a different server, I was able to telnet to the Pi-HolePi-Hole on port 53, though. I followed the documentation and I looked at some YouTube videos; the process looks pretty straightforward. My laptop IP is 192.168.40.16, and I can see from the log below that there is a warning, and it seems it’s hitting there. Any idea what I am doing wrong? I would appreciate it if someone could help me. Thanks

WARNING dnsmasq: ignoring query from non-local network 192.168.40.16 (logged only once)

log

https://tricorder.pi-hole.net/PbPPjQDy/

Your Pi-hole is on a different network.

Pi-hole IP is 192.168.50.114:

*** [ DIAGNOSING ]: Network routing table
   default via 192.168.50.1 dev ens18 proto static 
   192.168.50.0/24 dev ens18 proto kernel scope link src 192.168.50.114 

But your laptop is on a different network (192.168.40.0/24).

The warning is expected, since Pi-hole is configured to listen only Local queries (from the same network):

listeningMode = "LOCAL"

Change the interface settings on the Settings > DNS page.

(If you can see the Interface settings box, switch from Basic to Expert mode, using the button on the top of the page)