Skip to content

refreshNames does not work with listen-address #1991

@n12c

Description

@n12c

This is a: Bug

Details

I changed the dnsmasq listen port to 2053 using pihole.toml, then also changed the listen address to 127.0.0.53 using etc_dnsmasq_d = true and listen-address=127.0.0.53 and bind-interfaces. pihole-FTL now listens for DNS queries on 127.0.0.53:2053/udp and 127.0.0.53:2053/tcp as I intend.

Due to what I assume is the functioning of refreshNames I now see:

2026-02-19 17:52:30.626 UTC [68/T71] ERROR: Cannot receive UDP DNS reply: Timeout - no response from upstream DNS server
2026-02-19 17:52:30.626 UTC [68/T71] INFO: Tried to resolve PTR "1.0.0.127.in-addr.arpa" on 127.0.0.1#2053 (UDP)
2026-02-19 17:52:32.642 UTC [68/T71] ERROR: Cannot receive UDP DNS reply: Timeout - no response from upstream DNS server
2026-02-19 17:52:32.642 UTC [68/T71] INFO: Tried to resolve PTR "1.0.0.127.in-addr.arpa" on 127.0.0.1#2053 (UDP)
2026-02-19 17:52:34.658 UTC [68/T71] ERROR: Cannot receive UDP DNS reply: Timeout - no response from upstream DNS server
2026-02-19 17:52:34.658 UTC [68/T71] INFO: Tried to resolve PTR "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" on 127.0.0.1#2053 (UDP)

in the container logs. Note that 127.0.0.1:2053 is being queried, and there is no resolver listening on that IP and port.

Related Issues

  • I have searched this repository/Pi-hole forums for existing issues and pull requests that look similar

How to reproduce the issue

  1. Environment data
  • Operating System: Docker
  • Hardware: N100
  • Kernel Architecture: amd64
  • Docker Install Info and version:
    • Software source: Debian
    • Supplimentary Software: N/A
  • Hardware architecture: amd64
  1. docker-compose.yml contents, docker run shell command, or paste a screenshot of any UI based configuration of containers here
  2. any additional info to help reproduce

These common fixes didn't work for my issue

  • I have tried removing/destroying my container, and re-creating a new container
  • I have tried fresh volume data by backing up and moving/removing the old volume data
  • I have tried running the stock docker run example(s) in the readme (removing any customizations I added)
  • I have tried a newer or older version of Docker Pi-hole (depending what version the issue started in for me)
  • I have tried running without my volume data mounts to eliminate volumes as the cause

If the above debugging / fixes revealed any new information note it here.
Add any other debugging steps you've taken or theories on root cause that may help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions