Unbound doesn't set 127.0.0.1 in resolv.conf
127.0.0.1 should be first in resolv.conf where unbound is enabled and bound to localhost. line 145 in system.inc. There's an issue with the logic there.
This also needs an additional check - if dnsmasq/unbound aren't listening on port 53, skip adding 127.0.0.1 to resolv.conf to avoid the same breakage that used to happen when not bound to localhost.
#2 Updated by Renato Botelho over 4 years ago
- Status changed from Confirmed to Feedback
- Assignee set to Chris Buechler
The logic there looks correct, and on my tests it added 127.0.0.1 as the first nameserver in resolv.conf when unbound is enabled and configured to bind localhost or all. Do you have a broken system where I can take a look?