You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Better dot (DNS over TLS) support for resolvectl query #12859
Is your feature request related to a problem? Please describe.
I would like to debug if I'm actually using DNSOverTLS or not. Moreover I would like being able to force DOT in resolvectl query.
Describe the solution you'd like
When resolving using resolvectl query domain --legend true and cleartext DNS the legend output should be:
domain: 1.2.3.4 -- link: eth0
-- Information acquired via protocol DNS in 69ms.
-- Data is authenticated: yes.
With the same command (and result), but using DNS over TLS the legend output should be:
domain: 1.2.3.4 -- link: eth0
-- Information acquired via protocol DOT in 69ms.
-- Data is authenticated: yes.
The resolvectl query's -p flag should be able to support dot as a supported protocol, and enforce DNSOverTLS when used.
Describe alternatives you've considered
I haven't actually looked through neither the resolved API nor the resolvectl source itself, but granted resolvectl uses those API's, some extension of those may be needed.
The second feature seems apparently easier to implement since the merge of #12815, but again it is really API dependent.
Small addition from me: DOT is not the protocol name. It's called "DNS over TLS", I think we should write "DNS over TLS" if possible.
By the way: You can check if you are using DNS over TLS with wireshark. Just open wireshark and filter with "ip.dst == 1.1.1.1" (substitute 1.1.1.1 against your DNS server).
@shibumi thanks for the effort, but after waiting for a couple of weeks for a response, I ended up using DNSCrypt-proxy, which is much more reliable and consistent.
@antipatico What do you mean with reliable and consistent?
I use Google DNS + systemd-resolved in strict dns over TLS mode, now. And it works super reliable. I have no issues.
I would just prefer using cloudflare, but cloudflare has a bug in their implementation. They use TLS 1.2 instead of TLS 1.3. I have reported it to a cloudflare dev and they are on it.
@shibumi Do you have any more details on this cloudflare bug? Is this bug simply that systemd-resolved is incompatible with TLS 1.2 and requires TLS 1.3? Seems that systemd-resolved is also not working with AdGuard DNS over TLS either and the wireshark output is suspiciously similar.
Activity
shibumi commentedon Sep 9, 2019
Small addition from me: DOT is not the protocol name. It's called "DNS over TLS", I think we should write "DNS over TLS" if possible.
By the way: You can check if you are using DNS over TLS with wireshark. Just open wireshark and filter with "ip.dst == 1.1.1.1" (substitute 1.1.1.1 against your DNS server).
shibumi commentedon Sep 9, 2019
@antipatico some addition. It looks like systemd-resolved doesn't support cloudflare DNS servers. I don't know the reason for it, I guess it has something to do with the tls version (cloudflare uses 1.2 and google uses 1.3). If you want to see how such a wireshark trace looks like, you can check it out here: https://twitter.com/Sh1bumi/status/1171075999984996355
antipatico commentedon Sep 14, 2019
@shibumi thanks for the effort, but after waiting for a couple of weeks for a response, I ended up using DNSCrypt-proxy, which is much more reliable and consistent.
shibumi commentedon Sep 14, 2019
@antipatico What do you mean with reliable and consistent?
I use Google DNS + systemd-resolved in strict dns over TLS mode, now. And it works super reliable. I have no issues.
I would just prefer using cloudflare, but cloudflare has a bug in their implementation. They use TLS 1.2 instead of TLS 1.3. I have reported it to a cloudflare dev and they are on it.
carloabelli commentedon Oct 23, 2019
@shibumi Do you have any more details on this cloudflare bug? Is this bug simply that systemd-resolved is incompatible with TLS 1.2 and requires TLS 1.3? Seems that systemd-resolved is also not working with AdGuard DNS over TLS either and the wireshark output is suspiciously similar.
shibumi commentedon Oct 23, 2019
@carloabelli Hi, yes I do have more information about this. This bug has been resolved with this PR:
#13809
You can find an explanation about this here: #13528 (comment)
resolved: add "confidential" flag for replies passed to clients