mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-03-04 00:01:12 -05:00
AdGuard stops serving all DNS requests when internet connection drops #3502
Labels
No labels
P1: Critical
P2: High
P3: Medium
P4: Low
UI
bug
cannot reproduce
compatibility
dependencies
docker
documentation
duplicate
enhancement
enhancement
external libs
feature request
good first issue
help wanted
infrastructure
invalid
localization
needs investigation
performance
potential-duplicate
question
recurrent
research
snap
waiting for data
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AdGuardHome#3502
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NullEnt1ty on GitHub (Feb 20, 2022).
Issue Details
Expected Behavior
AdGuard Home should continue to serve DNS requests for local devices even when the internet connections drops.
Actual Behavior
After starting AdGuard Home it operates normally. However, after a few minutes (without internet access) it stops serving DNS requests completely.
Additional Information
This seems to be related to #2657
Debug logs: adguard.log
Configuration
The problem seems to occur once AdGuard tries to contact its upstream DNS servers or update its filter lists.
The web interface continues to work.
@fernvenue commented on GitHub (Feb 21, 2022):
As ameshkov said in https://github.com/AdguardTeam/AdGuardHome/issues/2657#issuecomment-820279087:
That works for me, and I don't think the mainline version has changed this to default behavior, it is still
max_goroutines: 300.@NullEnt1ty commented on GitHub (Feb 21, 2022):
Thanks, I will try this in the meantime, but this sounds more like a workaround to me.
According to this comment the issue should have been fixed in v0.107.0 which is not the case for me. That's why I'm reporting it again.
@fernvenue commented on GitHub (Feb 21, 2022):
What I see is they are talking about beta and edge releases...let's just wait and see the new progress of this issue.
@gibwar commented on GitHub (Apr 12, 2022):
I just had an ISP outage after switching over to AGH a few days ago from pi.hole and am running 0.107.5 with a similar configuration (
tls://1.0.0.1,[/home/]172.24.44.45, etc) and was surprised to see all internal DNS requests fail while the internet was down. I figured the whole point of routing requests was to know which were reachable (both on the 172.24.44.x network) and which weren't (upstream).I'm liking AGH, but if I have another outage, I may have to point AGH to upstream to bind so internal works while the internet is off. The reason I switched was for the native DoT support without third-party libraries.
ETA: I did have "Use AdGuard browsing security web service" enabled when the internet went down, so maybe AGH was checking my internal DNS responses against this security web service? I've since disabled it in hopes that DNS keeps working next time the internet is out.
@phenomenomenom commented on GitHub (May 1, 2022):
I have the same experience as @NullEnt1ty. Local DNS stops being served when there's an upstream outage. Setting max_goroutines to 0 functions as a workaround.
@cburgess commented on GitHub (May 21, 2022):
I ran into the same exact issue this morning on v0.107.6. After some debugging I determined that the issue is in fact with having 'safebrowsing_enabled' set to true (e.g. 'Use AdGuard browsing security web service'). With the upstream internet down it takes some time for that upstream query to fail and during that time the DNS response just hangs and/or times out. In order to work around this I added custom filtering rules to always allow my local DNS names. This resolved the issue as AdGuard will by-pass the safebrowsing check since its allowed.
@nathan815 commented on GitHub (Mar 2, 2025):
Was this ever fixed? I still have this issue on AdGuardHome v0.107.57. @Birbber Can this be reopened since the issue is still present?
@Livy-Inverse commented on GitHub (Mar 3, 2026):
I am on 0.107.71 and the issue persists.