Linux Bind Port 53 Failed: systemd-resolved Stub Listener Active

Local DNS server (BIND/Unbound/Pi-hole) cannot bind 127.0.0.53:53.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: Linux Bind Port 53 Failed Platform: Networking
Common Root Causes:
  • Local DNS server (BIND/Unbound/Pi-hole) cannot bind 127.0.0.53:53.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Set `DNSStubListener=no` in `/etc/systemd/resolved.conf` and point `/etc/resolv.conf` appropriately.
Safe Diagnostic Command:
ss -tulpn | grep :53
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

Local DNS server (BIND/Unbound/Pi-hole) cannot bind 127.0.0.53:53. Recommended diagnostic: `ss -tulpn | grep :53`. Remediation: Set `DNSStubListener=no` in `/etc/systemd/resolved.conf` and point `/etc/resolv.conf` appropriately.

Worked Examples

  • Run `ss -tulpn | grep :53` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-linux-systemd-resolved-port-53 · Independently verified: 2026-11-25

Related Resources