-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
anyone encounter this problem? upstream dns response so long time. #6901
Comments
in function exchangeUpstream
if len(ups) == 1 { // only one dns upstream server
u = ups[0]
resp, _, err = exchange(u, req, p.time)
// TODO(e.burkov): p.updateRTT(u.Address(), elapsed)
return resp, u, err
}
in exchange function ,then call reply, err := u.Exchange(req)
func (p *plainDNS) Exchange(req *dns.Msg) (resp *dns.Msg, err error)
...
resp, err = p.dialExchange(p.net, dial, req)
...
then call function,,, dial bootstrap.DialHandler,
for i, addr := range addrs {
log.Debug("bootstrap: dialing %s (%d/%d) nw: %+v", addr, i+1, l, network)
start := time.Now()
conn, err = dialer.DialContext(ctx, network, addr)
elapsed := time.Since(start)
if err != nil {
log.Debug("bootstrap: connection to %s failed in %s: %s", addr, elapsed, err)
errs = append(errs, err)
continue
}
log.Debug("bootstrap: connection to %s succeeded in %s", addr, elapsed)
return conn, nil
}
????? i have no idea... and when occurs twice ,,then upstream dns server response time, elapsed so long seconds,(always >=10 secs) |
Some problem Versão: v0.107.48 2024/04/09 11:36:50.586816 [error] dnsproxy: https://dns12.quad9.net:443/dns-query: response received over tcp: "requesting https://dns12.quad9.net:443/dns-query: Get "https://dns12.quad9.net:443/dns-query?dns=AAABAAABAAAAAAABBXdob2lzBGFyaW4DbmV0AAABAAEAACkIAAAAgAAAAA\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)" |
i have same problem |
Same problem in v0.107.48 |
Ok, I'm going to download this branch and give it a try, thks for your reply |
threre are embarrassed! but i change AdGuardHome.yaml config (response time more faster,, less cost) new configuration items below ,,,,
may be |
I'm noticing a much higher response time on v0.107.48 than before, mainly on DNSCrypt servers, which usually was less than 70ms. Servers:
|
oh, mygod,, How to trigger that,? |
Prerequisites
I have checked the Wiki and Discussions and found no answer
I have searched other issues and found no duplicates
I want to report a bug and not ask a question or ask for help
I have set up AdGuard Home correctly and configured clients to use it. (Use the Discussions for help with installing and configuring clients.)
Platform (OS and CPU architecture)
Linux, AMD64 (aka x86_64)
Installation
GitHub releases or script from README
Setup
On one machine
AdGuard Home version
master
Action
The elapsed time will occur whenever
bootstrap: dialing
andbootstrap: connection to
occurs twice, elapsed more than 10 seconds, which is the dnsproxy query upstream dns server:94.140.14.140:53
.I don't know why, has anyone else encountered this situation, thank you for your reply
Expected result
expect upstream dns server response very quick.
just like this:
elapsed 300.037022ms
Actual result
Additional information and/or screenshots
no other info.
The text was updated successfully, but these errors were encountered: