Actions
Bug #9963
closedDNS servers assigned dynamically are omitted if also assigned manually when override is disallowed
Start date:
12/10/2019
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
All
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.
Updated by Jim Pingle almost 5 years ago
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.
Updated by Jim Pingle almost 5 years ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
Applied in changeset f829d7e2967d170f09756937e9076e87d5f9e2d7.
Updated by Jim Pingle almost 5 years ago
- Target version changed from 2.5.0 to 2.4.5
Updated by Jim Pingle almost 5 years ago
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.
Updated by Jim Pingle almost 5 years ago
- Status changed from Feedback to Resolved
Works as expected on 2.4.5.a.20191219.0146
Actions