Pi-hole Not Answering DNS: Upstream and Port Checks

Terminal showing Pi-hole DNS service and port checks

If Pi-hole receives queries but does not answer, clients may report that DNS is unavailable or time out while websites fail to load. The most common cause is a DNS service conflict on port 53, often because another resolver on the host is already listening there.

Why this happens

Pi-hole must receive each client query, pass it to a working upstream resolver when needed, and return the response. A failure at any point looks like “no DNS,” so first identify whether queries reach Pi-hole and whether its resolver can answer.

  • Another service owns port 53, preventing Pi-hole’s DNS listener from binding.
  • Clients use a different DNS server, or a router’s DHCP settings advertise the wrong address.
  • Pi-hole cannot reach its configured upstream resolver because of a bad address, route, or firewall rule.

1. Confirm the client is querying Pi-hole

Find the Pi-hole server’s LAN IP in its host’s network settings or router client list. On a client, run nslookup example.com PIHOLE_IP, replacing PIHOLE_IP with that address. On Linux or macOS, you can also run dig @PIHOLE_IP example.com. If this direct query succeeds but normal browsing fails, Pi-hole is answering; correct the client’s DNS setting or the router’s DHCP DNS option so it advertises Pi-hole’s LAN IP.

2. Check whether port 53 is already in use

On the Pi-hole host, run sudo ss -lntup | grep ':53 ' on Linux. Review the process names and addresses shown for both UDP and TCP. If another resolver, such as a local DNS service or a container, owns the required address and port, stop or reconfigure that service, or move Pi-hole to a different host address. On Docker, inspect the container’s port mappings and host networking configuration; two services cannot bind the same host IP and port. Retry the direct query after resolving the conflict.

3. Verify the Pi-hole DNS service is running

In the Pi-hole web interface, open Tools > Pi-hole diagnosis on current versions and review reported DNS or connectivity issues. You can also check from the host with pihole status. If the DNS service is stopped, use sudo pihole restartdns to restart it, then run the direct query again. A running service and a returned DNS answer confirm that the listener is available; a service that repeatedly stops points to a configuration or port conflict.

4. Test the configured upstream resolver

In the web interface, open Settings > DNS and check which upstream resolver is selected. On current versions, labels can vary slightly. From the Pi-hole host, test the selected upstream directly, for example with dig @1.1.1.1 example.com if that resolver is configured. A returned answer confirms the host can reach it. If the test times out, check the upstream address, the host’s default route, and outbound DNS rules on your firewall or router. Select a reachable resolver and save the setting.

5. Check firewall and network rules

DNS uses both UDP and TCP on port 53. Review the host firewall, router rules, and any VLAN or guest-network policy to make sure client devices can reach the Pi-hole IP on both protocols. If Pi-hole runs in Docker, check that port 53 is published for UDP and TCP when using bridge networking; host-network mode has different port behavior. A successful direct query from a client on the affected network confirms the path is open.

6. Review the client and DHCP configuration

Check the router’s LAN or DHCP settings and confirm the DNS server distributed to clients is Pi-hole’s reachable LAN address. Then renew the client’s DHCP lease or reconnect it to the network. Avoid setting Pi-hole itself as its own upstream DNS server unless you intentionally configured a separate resolver chain; that can create a loop. The fix is confirmed when the client’s DNS configuration shows Pi-hole and a direct query returns an answer.

7. Inspect Pi-hole query activity

Open Query Log in the Pi-hole web interface, then run a fresh lookup from an affected client. If the query appears but has no answer, investigate upstream reachability and DNS service errors. If it does not appear, the client is likely querying another resolver or a network rule is blocking the request. This test narrows the problem to Pi-hole’s resolver path or the route between client and server.

CauseSymptomQuick test
Port 53 conflictDNS service will not start or listenCheck listeners with ss
Wrong client DNSDirect query works, normal lookup failsInspect client DNS settings and Query Log
Unreachable upstreamQueries arrive but do not resolveQuery the configured upstream from the host
Firewall or container mappingOnly some networks or clients failTest direct access over UDP and TCP port 53

FAQ

Why is Pi-hole not responding to DNS requests?

Common causes include a conflicting service on port 53, clients using the wrong DNS server, and an unreachable upstream resolver. Use a direct query to the Pi-hole IP and check the Query Log to see whether requests arrive.

How do I test whether Pi-hole is answering DNS?

Run nslookup example.com PIHOLE_IP from a client, replacing the placeholder with the server’s LAN IP. A returned address confirms Pi-hole answered that query.

Does Pi-hole need both UDP and TCP port 53?

Yes. DNS commonly uses UDP, and TCP is also needed for some queries and responses. Check firewall rules and Docker port mappings for both protocols.

Most cases are resolved by freeing port 53, correcting the DNS address distributed to clients, or restoring access to the upstream resolver. If these checks do not help, review Pi-hole’s diagnosis output and host logs, then verify the router, container, and VLAN configuration along the query path.

Photo: Trique303 / CC BY-SA 4.0 (Wikimedia Commons)

Leave a Comment

Immich Thumbnails Broken After Update: Rebuild Guide

Immich Thumbnails Broken After Update: Rebuild Guide

Fix the immich thumbnail error loading image after an update by checking storage, permissions, and jobs, then safely rebuild missing thumbnails in Immich.

Plex Database Corruption on Unraid: Root Cause Guide

Plex Database Corruption on Unraid: Root Cause Guide

Fix plex database keeps getting corrupt unraid by checking storage health, filesystem errors, write access, and Plex’s database before restoring a clean backup.

Pi-hole Not Answering DNS: Upstream and Port Checks

Pi-hole Not Answering DNS: Upstream and Port Checks

Fix pihole not responding to dns requests by checking client settings, port 53 conflicts, Pi-hole’s DNS service, upstream reachability, and firewall rules.

CasaOS Merge Storage Not Working: Disk and fstab Fixes

CasaOS Merge Storage Not Working: Disk and fstab Fixes

Fix casaos merge storage not working by checking disk mounts, mergerfs, permissions, app paths, and fstab conflicts on your self-hosted server.

Nextcloud Snap Stuck in Maintenance Mode: Safe Fix

Nextcloud Snap Stuck in Maintenance Mode: Safe Fix

Nextcloud Snap stuck in maintenance mode? Check background jobs, disk space, and snap logs, then safely identify and clear the maintenance flag.

Immich Error Loading Image: Thumbnail and EXIF Fixes

Immich Error Loading Image: Thumbnail and EXIF Fixes

Fix immich error loading image after upload by checking thumbnail jobs, storage permissions, image files, and EXIF processing in your self-hosted Immich server.

Jellyfin Container Stuck Restarting: Compose Debug Guide

Jellyfin Container Stuck Restarting: Compose Debug Guide

Fix jellyfin container stuck on restarting in Docker Compose: inspect logs, verify config volume permissions, correct mounts, and isolate common startup failures.

Jellyfin Error Opening File for Writing: Permissions

Jellyfin Error Opening File for Writing: Permissions

Fix jellyfin error opening file for writing by checking the Jellyfin service account, media mount permissions, container UID/GID, and storage health.

TrueNAS SCALE Stuck on Welcome to GRUB: Boot Fixes

TrueNAS SCALE Stuck on Welcome to GRUB: Boot Fixes

Fix truenas scale stuck on welcome to grub by checking boot media, firmware mode, pool health, and boot environments before attempting a careful reinstall.

Unraid Docker execution error 403: Appdata Permissions

Unraid Docker execution error 403: Appdata Permissions

Fix unraid docker execution error 403 by checking appdata ownership, container paths, Docker settings, and Unraid’s web session before changing permissions.