-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bootstrapping DOH and DOT uses system resolver on Windows #770
Comments
Well, it seems that CloudFlare DNS is not reachable from your place. You should contact your internet service provider and report this issue. |
When it happened, I can use |
@bestpika maybe the issue is with their DNS-over-HTTPS server only? What does AGH print to the log? |
Here is the log: log.zip |
@bestpika could you please run AGH with |
Step:
When error, I can query DNS use line 3124: add DNS |
|
Bootstrap DNS is set to 1.1.1.1 and it fails to resolve the IP addresses. Try changing bootstrap DNS to 8.8.8.8 and see if there's any change |
In this log, 8.8.8.8 can't resolve too. |
After line 4243, it can get the IP address. |
What happened after 4243? |
I have no idea. |
@szolin plz take a look, maybe you can see what's wrong here |
If my upstreams DNS have any IP based DNS (like |
Does it work if you disable browsing security? |
So there's possibly an issue when:
@szolin plz don't miss this |
Please clear system DNS cache before the test. |
I disabled all filter. |
Not really, it looks as if it randomly fails to resolve the upstream's domain name. I don't know why, though. |
Oh, I try again, it got error too. |
Try a different bootstrap DNS. Try |
I try
(only set one bootstrap DNS) and get the same error. Only upstream DNS have IP based DNS won't get the error. |
Then I have no idea what's wrong, and I cannot reproduce this issue. I'll reopen this issue, maybe @szolin will see something |
By the way, my two computers are behind the wireless ap (different model). |
It does not matter. For some reason, for the first minute or so, AGH fails to bootstrap the addresses of the upstream servers. Maybe some firewall messes with it, maybe something else, I can only say what I see in the log. This is clearly not a bug, but something specific to your computer configuration. |
The problem consists of using domains in the "Upstream DNS servers". The bootstrap servers I use are 8.8.8.8 and 1.1.1.1 - they work when the SYSTEM DNS (The one in the network card's IPv4 settings) is not changed to 127.0.0.1. As soon as I change the SYSTEM dns to 127.0.0.1 - AdGuard is unable to resolve the upstream DNS hostnames and the whole system looses DNS. It's like there are no bootstrap DNS servers at all. If I place a tls://1.1.1.1 in Upstream DNS - I got resolve and adguard processes the system's DNS queries. |
@Onepamopa just in case, what OS are you using? |
Windows 10 64 bit |
Interesting, two identical issues both on Windows. This might be a bug of golang, we'll take a look at it. |
Still does not work, this issue should not be closed. When SYSTEM resolver is set to AGH (127.0.0.1), AGH will not resolve the host names of Upstream DNS servers. Bootstrap DNS servers not working in this case. |
Steps to reproduce:
This indicates the bootstrap DNS servers are NOT USED AT ALL to resolve hostnames for upstream DNS servers. |
Reopened and assigned back to v0.97. @szolin could you please take a look at this? |
@Onepamopa Can you attach new logs with v0.96-hotfix? |
@szolin I will do that tomorrow. |
I see what is going on - it's related to IPv6. I have IPv6 disabled on my network card, but adguard tries to connect using IPv6: I suggest an option to enable/disable IPv6. |
@Onepamopa thanks for the log, please wait till the next update. |
Please attach the complete log, we need to see why there are no IPv4 addresses which AGH can use. |
Steps to reproduce
ipconfig /flushdns
AdGuardHome.exe -s start
nslookup www.google.com
Expected behavior
Return something.
Actual behavior
If I get the timeout, always timeout.
When the timeout,
[Test upstreams]
will get the error.But If I set any DNS (direct set IP) at the first upstream DNS, it will work.
Config: AdGuardHome.zip
Your environment
The text was updated successfully, but these errors were encountered: