unbound: service is not listening on localhost 127.0.0.1
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
Hi,
I have configured Unbound + odhcpd, and now I want to enhance the setup with AdGuard Home as my primary DNS server.
In this setup Unbound should work as recursive DNS server, means all DNS requests from a client are sent to AdGuard Home, and if the requested domain is not filtered out, it will be send to Unbound.
For this setup I would configure Unbound to listen on 127.0.0.1:5335 and configure in AdGuard Home >Upstream-DNS-Server with this value: 127.0.0.1:5335.
However, using Unbound configured by UCI I get different interfaces:
root@router:~# netstat -tulpn | grep 53
tcp 0 0 172.16.10.2:53 0.0.0.0:* LISTEN 3268/AdGuardHome
tcp 0 0 127.0.0.1:8953 0.0.0.0:* LISTEN 6776/unbound
tcp 0 0 0.0.0.0:5335 0.0.0.0:* LISTEN 6776/unbound
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 3268/AdGuardHome
tcp 0 0 172.16.1.2:53 0.0.0.0:* LISTEN 3268/AdGuardHome
tcp 0 0 ::1:53 :::* LISTEN 3268/AdGuardHome
tcp 0 0 ::1:8953 :::* LISTEN 6776/unbound
tcp 0 0 :::5335 :::* LISTEN 6776/unbound
udp 0 0 172.16.10.2:53 0.0.0.0:* 3268/AdGuardHome
udp 0 0 172.16.1.2:53 0.0.0.0:* 3268/AdGuardHome
udp 0 0 127.0.0.1:53 0.0.0.0:* 3268/AdGuardHome
udp 0 0 0.0.0.0:5335 0.0.0.0:* 6776/unbound
udp 0 0 ::1:53 :::* 3268/AdGuardHome
udp 0 0 :::5335 :::* 6776/unbound
Can you please advise how to fix this?
THX
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Unbound package files under net/unbound/files and the UCI-generated configuration, then reproduce the reported listening sockets with Unbound plus odhcpd and AdGuard Home. Done means the configuration behavior is understood and documented or corrected so the requested localhost listener setup can be verified.
Written by the indexing model from the issue text.
Assessment
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100