unbound: warnings for duplicate local-zone
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
Package Name
unbound
Maintainer
EricLuehrsen
OpenWrt Version
25.12.0-rc3, snapshot
OpenWrt Target/Subtarget
x86/64
Steps to Reproduce
Install odhcpd;
Configure it as stated in the readme for "unbound + odhcpd only"
Add some "domain" entries in /etc/config/dhcp.
Set domain_type to static and domain to "domainname.tld" in unbound.
Configure unbound to "Use extra DNS entries found in /etc/config/dhcp"
Actual Behaviour
If you start now unbound, we get a lot of warnings like:
daemon.warn unbound: [10455:0] warning: duplicate local-zone domainname.tld.
/var/lib/unbound/unbound.conf contains a lot of duplicate local-zone entries because the duplicate check in
/usr/lib/unbound/dnsmasq.sh create_local_zone() function does not work properly.
A little bit problematic is, we end with a config with entries
local-zone: domain name.tld static
local-zone: domain name.tld transparent
Also see discussion in the forum with a possible solution
unbound-odhcpd-warnings-duplicate-local-zone
Confirmation Checklist
- The package is maintained in this repository.
- I understand that issues related to the base OpenWrt repository or LuCI repository will be closed.
- I am reporting an issue for OpenWrt, not an unsupported fork.
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 /usr/lib/unbound/dnsmasq.sh and the create_local_zone() function, then inspect /var/lib/unbound/unbound.conf using the reproduction steps. Check how static and transparent local-zone entries are generated from /etc/config/dhcp and the unbound configuration. Done means the reproduced configuration no longer contains duplicate local-zone entries or produces duplicate-zone warnings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100