AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home.html
GNU General Public License v3.0
24.44k stars 1.77k forks source link

DNS-over-TLS - "broken pipe" errors #1986

Closed ammnt closed 4 years ago

ammnt commented 4 years ago

Prerequisites

Issue Details

Actual Behavior

Regardless of the client resolver sometimes I have a "broken pipe" error withins a few minutes. At this time, no one domain will be resolved for the network clients😤As I understood this error concerns only the DoT protocol.

Screenshots

Here is no verbose log screenshot:
![image](https://user-images.githubusercontent.com/45385632/89124778-4398b480-d4e2-11ea-8773-98b78417308b.png)
But looks like DNS processing works fine and the records has returned:
![image](https://user-images.githubusercontent.com/45385632/89124915-43e57f80-d4e3-11ea-9f6d-132670279d61.png)

Additional Information

I will try to catch this moment with verbose log. What other data will be needed to solve this problem?

P.S.: I had the same error with Stubby resolver. I am now using the built-in Keenetic resolver. Therefore, it's about the server part, not the client🤔

P.P.S.: There is no such error if I use NextDNS directly or if I use the DoH protocol🤨

Thank you.

ameshkov commented 4 years ago

I'd really like to see the verbose log

ammnt commented 4 years ago

@ameshkov, it happened again yesterday. The verbose log is attached. Please, look at what happened at 19:15 with the external.fhel4-1.fna.fbcdn.net host and its cname scontent.fhel4-1.fna.fbcdn.net.

As far as I understand, the server received records for these hosts, but due to handshake problems or something like that this information does not reach to the clients resolver😬

Thank you.

ameshkov commented 4 years ago

It just means that the client closed the connection so AGH just cannot write an answer.

Not sure why this happens, but I am pretty sure this is not an AGH bug.