Firefox fails to resolve AAAA only hostnames when using dnscrypt #1899
Replies: 12 comments 17 replies
-
I'm using dnscrypt 2.1.0 and Debian testing 64 bits. This is my configuration, I think it's OK: https://pastebin.com/A2FVRZ7q |
Beta Was this translation helpful? Give feedback.
-
Hello claverm. Could you make a clearer test suite? I use P.S. Your first sentence obviously contradicts the title. Besides, the phrase
seems too... confident, as if you are really tracing what firefox is doing. I would check Moreover, it might depend on the order in which you do the test: either first in Firefox, then in Chromium, or another way. You could measure response time in terminal using IMO, judging only by browser behavior is useless because you don't really know how exactly they resolve names. |
Beta Was this translation helpful? Give feedback.
-
I found what was wrong in Firefox. When it resolves a AAAA only domain, it "thinks" the resolved address is IPv4. This is a bug of Firefox. I solved by turning network.http.fast-fallback-to-IPv4 in about:config to "false". Sorry about my English, it's not very good. Thank you. |
Beta Was this translation helpful? Give feedback.
-
I tested Stubby: https://github.com/getdnsapi/stubby and direct DNS:
With them, Firefox loads AAAA sites normally. This is specific to DNSCrypt and should be fixed in some way. |
Beta Was this translation helpful? Give feedback.
-
I'm not using DoH, but anonymized DNSCrypt. For Stubby (DNS over TLS) I get this timing:
And for Anonymized DNSCrypt:
DNSCrypt is faster than DNS over TLS, but causes that error in Firefox, DoT that is slower, works fine. I tested in my Windoze PC, the same error persists in Firefox. |
Beta Was this translation helpful? Give feedback.
-
My DNSCrypt is set on address 127.0.0.1:53 and also the other DNS program, Stubby. I captured in Wireshark the DNS queries being made by Firefox using DNSCrypt and Stubby. DNSCrypt is giving errors to Firefox when loading AAAA hostnames, Stubby not. |
Beta Was this translation helpful? Give feedback.
-
IMHO (I don't have IPv6):
Maybe |
Beta Was this translation helpful? Give feedback.
-
So, what are you seeing in the query log? |
Beta Was this translation helpful? Give feedback.
-
I tested this program: https://github.com/nadoo/glider
It's causing the same probem of DNSCrypt. It's made in Go as DNSCrypt is, perhaps these two use the same component in Go that could be the cause of this problem. |
Beta Was this translation helpful? Give feedback.
-
Query log: those following the init log. First, we'd like to know what |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Try to do some research on Firefox side with Better: dnscrypt-proxy query log, Wireshark capture and Firefox log at the same time. |
Beta Was this translation helpful? Give feedback.
-
In Firefox, when a domain has only an IPv6 address and is resolved in browser with dnscrypt, it fails to load its page, and only reloading the page one or more times the page loads.
I tested in Chromium and this doesn't happens with it.
An example is when accessing http://v6.testmyipv6.com/ which has only AAAA IPs:
I recorded a Screencast showing the problem:
Screencast.zip
Can this behavior in Firefox be solved by fixing something in dnscrypt?
Beta Was this translation helpful? Give feedback.
All reactions