dns.bind_hosts
for addresses that aren't permanent
#6145
Labels
duplicate
Duplicate or merged issues.
dns.bind_hosts
for addresses that aren't permanent
#6145
Prerequisites
I have checked the Wiki and Discussions and found no answer
I have searched other issues and found no duplicates
I want to request a feature or enhancement and not ask a question
The problem
dns.bind_hosts
today requires that there is an interface with each of the addresses at the timeadguardhome
starts up. This presents a complication when some of the interfaces aren’t static (e.g. WiFi, VPN) or if setting up an interface depends on being able to resolve DNS in the first place (leading to chicken-egg problem.) In particularAdGuardHome
today will fail with an error message along the lines ofWhich then leaves the system without any DNS at all (since it is set up to use
127.0.0.1
as the DNS server…)Proposed solution
dnsmasq
had a functionality that allowed it to start even if the interfaces it was specified to bind to weren’t yet available. It would then monitor interface list at the runtime and bind/unbind sockets as the interfaces would come up or down.I suggest that
adguardhome
should be doing the same, rather than crashing if it is unable to bind one of some of the interfaces/addresses.Alternatives considered and additional information
There is a system-side fix that I’m planning to use for the time being: bind to
0.0.0.0
and then use firewall rules to allow/deny access to adguardhome from specific interfaces.The text was updated successfully, but these errors were encountered: