Bug #9963
closed
DNS servers assigned dynamically are omitted if also assigned manually when override is disallowed
Added by Jim Pingle almost 5 years ago.
Updated almost 5 years ago.
Affected Architecture:
All
Description
If:
- A name server is manually configured, such as 8.8.8.8, under System > General
- That same name server is also assigned dynamically (DHCP, PPPoE, etc)
- And DNS Server Override is unchecked
Then that name server is incorrectly omitted from the system name servers.
It looks like the code is trying to avoid duplication, but didn't account for this case.
This seems to primarily be a problem just after unchecking the DNS Server Override box, as later the servers are prevented from being in the list originally. So there is somewhat of a race condition at play.
- Status changed from New to Feedback
- % Done changed from 0 to 100
- Target version changed from 2.5.0 to 2.4.5
Easiest way to reproduce:
- Enable forwarding in the DNS Resolver (Or forwarder, behavior is likely the same but I only checked resolver)
- Check DNS Server Override on System > General, save, then reboot or at least save/apply WAN)
- Set a DNS server on System > General that is the same as one supplied via DHCP on WAN, save
- Check that it's in /var/unbound/unbound.conf as a forward-addr entry
- Check DNS Server Override on System > General, save, and check /var/unbound/unbound.conf and see if the manually added entry is a forward-addr
Without this change, the DNS server will be missing from the list (and if they all overlap, there will be no forwarders and resolving will fail). With this change, it should be a forward-addr either way.
- Status changed from Feedback to Resolved
Works as expected on 2.4.5.a.20191219.0146
Also available in: Atom
PDF