Localhost is the only active client

I have installed Pi-hole on a ubuntu 20.04 LTS server and when ever I try to point any of my devices to it I am getting DNS errors. I have tried a few different install methods and nothing seems to make a difference and allow it to work

Expected Behaviour:

After setup for all computers in the house to be able to connect through pi-hole and still resolve the web pages they are requesting

Pi-hole server version: Pi-hole v5.17.1
Operating system:
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"

Gigabyte motherboard: GA-Z97X-UD3H
intel i7 4790k
16GB ddr3

Router
Nighthawk(R) X4S R7800
firmware V1.0.2.92

Actual Behaviour:

I did a clean install of Pi-hole and no matter what I do to my systems I can't get them to use Pi-hole and get any website to resolve. The only system that appears in the web interface is localhost through the loopback interface.

I have a Nighthawk(R) X4S R7800 and I have gone to the internet settings and tried putting only the static ip for my pi-hole server (192.168.1.20), and nothing on the network is able to resolve. Once I add in secondary and third DNS as 8.8.8.8 and 8.8.4.4 then everything appears to be able to use the internet again, but nothing is being routed through the PI-hole.

I can't figure out what I am doing wrong as most videos show just needing to do the install and point the router and DNS works for them on other endpoints.

Debug Token:

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

It seems your router doesn't have option to enter DNS settings on page 52 NETGEAR Nighthawk X4S AC2600 Smart WiFi Router User Manual Model R7800
In that case your only options would be to use pi-hole built-in DHCP server or manually set each device to use Pi-hole as its DNS server. Post-Install - Pi-hole documentation

Don't forget to disable your router DHCP on page 52 of your manual.

Good Luck

Thank you for looking into this, but from what I can tell I am able to define DNS settings on Page 20 of the manual under internet options. I am able to define 3 different DNS addresses.

With that being said I did give what you suggested a try and used the built in DHCP setting on the Pi-hole and things didn't go to well. When I enabled the DHCP setting on the Pi-hole and then disabled it on my router, this caused my Pi-hole box to not connect to my router and thus the rest of my network not working since DHCP was down. From the Pi-hole sever I tried what I could find to get the network interface back up and connected to the router, but no matter what I did it would connect and pull an IP in the range that my network normally runs on i.e. 192.168.1.XXX it would only pull 10.X.X.X addresses. I did a manual override for the IP, gateway, and netmask and that did not work.

When configuring the DHCP protocol settings on the Pi-hole I gave it the IP's from 192.168.1.2 to 192.168.1.251

That sounds like you're trying to set your router's upstream DNS server to Pi-hole.
(That is a valid configuration, but you won't be able to attribute DNS requests to individual clients in Pi-hole's Query Log - they will originate from your router.)

Note that Pi-hole must be your sole DNS server.
Your router will use any alternative to by-pass Pi-hole, which is what your observation confirms.

As DNS resolution is not working when Pi-hole is your router's only upstream, that would suggest that DNS requests may not make it to Pi-hole.
Typically, this is caused by a firewall running on Pi-hole's host machine.

Please verify that Pi-hole's required ports are accessible on its host machine.

The settings on pg. 20 is your WAN connectivity provided by your ISP. The settings you want to change is your LAN settings on pg. 52. Here in the US my WAN settings with connection type (Dynamic IP), I get (IP address, subnet mask, default gateway, primary and secondary DNS). I can't change those settings. If you are using a Windows client, can you show us the results of ipconfig /all at a command line

Fixed, I missed 2 of the ports in my copy and paste for the Firewall :frowning:

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