openwrt / openwrt/packages

unbound: warnings for duplicate local-zone

Open
#28,419 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.