DNS over TLS
Status | Proposed Standard |
---|---|
Latest version | RFC 7858, RFC 8310 May 2016 and March 2018 |
Organization | IETF |
Authors |
|
Abbreviation | DoT |
DNS over TLS (DoT) is a network security protocol for encrypting and wrapping Domain Name System (DNS) queries and answers via the Transport Layer Security (TLS) protocol. The goal of the method is to increase user privacy and security by preventing eavesdropping and manipulation of DNS data via man-in-the-middle attacks. The well-known port number for DoT is 853.
While DNS over TLS is applicable to any DNS transaction, it was first standardized for use between stub or forwarding resolvers and recursive resolvers, in RFC 7858 in May of 2016. Subsequent IETF efforts specify the use of DoT between recursive and authoritative servers ("Authoritative DNS over TLS" or "ADoT")[1] and a related implementation between authoritative servers (Zone Transfer-over-TLS or "xfr-over-TLS").[2]
Server software
BIND supports DoT connections as of version 9.17.[3] Earlier versions offered DoT capability by proxying through stunnel.[4] Unbound has supported DNS over TLS since 22 January 2023.[5][6] Unwind has supported DoT since 29 January 2023.[7][8] With Android Pie's support for DNS over TLS, some ad blockers now support using the encrypted protocol as a relatively easy way to access their services versus any of the various work-around methods typically used such as VPNs and proxy servers.[9][10][11][12]
Client software
Android clients running Android Pie or newer support DNS over TLS and will use it by default if the network infrastructure, for example the ISP, supports it.[13][14]
In April 2018, Google announced that Android Pie will include support for DNS over TLS,[15] allowing users to set a DNS server phone-wide on both Wi-Fi and mobile connections, an option that was historically only possible on rooted devices. DNSDist, from PowerDNS, also announced support for DNS over TLS in version 1.3.0.[16]
Linux and Windows users can use DNS over TLS as a client through the NLnet Labs stubby daemon or Knot Resolver.[17] Alternatively they may install getdns-utils[18] to use DoT directly with the getdns_query tool. The unbound DNS resolver by NLnet Labs also supports DNS over TLS.[19]
Apple's iOS 14 introduced OS-level support for DNS over TLS (and DNS over HTTPS). iOS does not allow manual configuration of DoT servers, and requires the use of a third-party application to make configuration changes.[20]
systemd-resolved is a Linux-only implementation that can be configured to use DNS over TLS, by editing /etc/systemd/resolved.conf
and enabling the setting DNSOverTLS
.[21][22] Most major Linux distributions have systemd installed by default.[23][circular reference]
Public resolvers
DNS over TLS was first implemented in a public recursive resolver by Quad9 in 2017.[24][25] Other recursive resolver operators such as Google and Cloudflare followed suit in subsequent years, and now it is a broadly-supported feature generally available in most large recursive resolvers.[26][27][28][29][30][31][32][33][12]
Criticisms and implementation considerations
DoT can impede analysis and monitoring of DNS traffic for cybersecurity purposes. DoT has been used to bypass parental controls which operate at the (unencrypted) standard DNS level; Circle, a parental control router which relies on DNS queries to check domains against a blocklist, blocks DoT by default due to this.[34] However, there are DNS providers that offer filtering and parental controls along with support for both DoT and DoH.[35][36][37][38][39][12] In that scenario, DNS queries are checked against block lists once they are received by the provider rather than prior to leaving the user's router.
As with any communication, encryption of DNS requests by itself does not protect privacy. It protects against third-party observers, but does not guarantee what the endpoints do with the (then decrypted) data.
DoT clients do not necessarily directly query any authoritative name servers. The client may rely on the DoT server using traditional (port 53 or 853) queries to finally reach authoritative servers. Thus, DoT does not qualify as an end-to-end encrypted protocol, only hop-to-hop encrypted and only if DNS over TLS is used consistently.
Alternatives
DNS over HTTPS (DoH) is a similar protocol standard for encrypting DNS queries, differing only in the methods used for encryption and delivery from DoT. On the basis of privacy and security, whether or not a superior protocol exists among the two is a matter of controversial debate, while others argue the merits of either depend on the specific use case.[40]
DNSCrypt is another network protocol that authenticates and encrypts DNS traffic, although it was never proposed to the Internet Engineering Task Force (IETF) with a Request for Comments (RFC).
See also
References
- ↑ Henderson, Karl; April, Tim; Livingood, Jason (2020-02-14). "Authoritative DNS-over-TLS Operational Considerations". Ietf Datatracker (Internet Engineering Task Force). https://datatracker.ietf.org/doc/draft-hal-adot-operational-considerations/.
- ↑ Mankin, Allison (2019-07-08). "DNS Zone Transfer-over-TLS". Ietf Datatracker (Internet Engineering Task Force). https://datatracker.ietf.org/doc/html/draft-hzpa-dprive-xfr-over-tls.
- ↑ "4. BIND 9 Configuration Reference — BIND 9 documentation" (in en). https://bind9.readthedocs.io/en/latest/reference.html?highlight=DoT#interfaces.
- ↑ "Bind - DNS over TLS". https://kb.isc.org/article/AA-01386/0/DNS-over-TLS.html.
- ↑ "Unbound version 1.7.3 Changelog". https://nlnetlabs.nl/svn/unbound/tags/release-1.7.3/doc/Changelog.
- ↑ Aleksandersen, Daniel. "Actually secure DNS over TLS in Unbound" (in en). Ctrl blog. https://www.ctrl.blog/entry/unbound-tls-forwarding.
- ↑ "openbsd-cvs mailing list archives". https://marc.info/?l=openbsd-cvs&m=154859286717496&w=2.
- ↑ "openbsd-cvs mailing list archives". https://marc.info/?l=openbsd-cvs&m=155408952506689&w=2.
- ↑ "blockerDNS - Block Ads and Online Trackers So You Can Browse the Web Privately on Your Android Phone Without Installing an App!". https://blockerdns.com/.
- ↑ "The official release of AdGuard DNS — a new unique approach to privacy-oriented DNS" (in en). https://adguard.com/en/blog/adguard-dns-announcement.html.
- ↑ "Blahdns -- Dns service support DoH, DoT, DNSCrypt". https://blahdns.com/.
- ↑ 12.0 12.1 12.2 "NextDNS" (in en). https://nextdns.io/.
- ↑ "DNS over TLS support in Android P Developer Preview" (in en). https://android-developers.googleblog.com/2018/04/dns-over-tls-support-in-android-p.html.
- ↑ Wallen, Jack (August 23, 2018). "How to enable DNS over TLS in Android Pie" (in en). https://www.techrepublic.com/article/how-to-enable-dns-over-tls-in-android-pie/.
- ↑ "DNS over TLS support in Android P Developer Preview". Google Security Blog. April 17, 2018. https://security.googleblog.com/2018/04/dns-over-tls-support-in-android-p.html.
- ↑ "DNS-over-TLS". https://dnsdist.org/guides/dns-over-tls.html.
- ↑ "Knot Resolver". https://www.knot-resolver.cz/.
- ↑ (in en) Package: getdns-utils, https://packages.ubuntu.com/search?keywords=getdns-utils, retrieved 2019-04-04
- ↑ "Unbound - About" (in en). https://nlnetlabs.nl/projects/unbound/about/.
- ↑ Cimpanu, Catalin. "Apple adds support for encrypted DNS (DoH and DoT)" (in en). https://www.zdnet.com/article/apple-adds-support-for-encrypted-dns-doh-and-dot/.
- ↑ "resolved.conf manual page". https://www.freedesktop.org/software/systemd/man/resolved.conf.html#DNSOverTLS=.
- ↑ "Fedora Magazine: Use DNS over TLS". 10 July 2020. https://fedoramagazine.org/use-dns-over-tls/.
- ↑ "Systemd adoption". https://en.wikipedia.org/wiki/Systemd#Adoption.
- ↑ Band, Alex (2017-11-20). "Privacy: Using DNS-over-TLS with the Quad9 DNS Service". Medium. https://medium.com/nlnetlabs/privacy-using-dns-over-tls-with-the-new-quad9-dns-service-1ff2d2b687c5. "Recently the Quad9 DNS service was launched. Quad9 differentiates from similar services by focusing on security and privacy. One interesting feature is the fact that you can communicate with the service using DNS-over-TLS. This encrypts the communication between your client and the DNS server, safeguarding your privacy."
- ↑ Bortzmeyer, Stéphane (2017-11-21). "Quad9 is a public DNS resolver, with promises of better privacy, and a DNS-over-TLS access". RIPE Labs. https://labs.ripe.net/author/stephane_bortzmeyer/quad9-a-public-dns-resolver-with-security/. "Last week, the new DNS resolver Quad9 has been announced. It is a public DNS resolver with the additional benefit that it is accessible in a secure way over TLS (RFC 7858). There are plenty of public DNS resolvers, but the link to them is not secure. This allows hijackings, as seen in Turkey, as well as third-party monitoring. The new Quad9 service on the other hand is operated by the not-for-profit Packet Clearing House (PCH), which manages large parts of the DNS infrastructure, and it allows access to the DNS over TLS. This makes it very difficult for third parties to listen in. And it makes it possible to authenticate the resolver."
- ↑ "Public DNS resolver Anycast DNS for All". https://www.dnslify.com/services/resolver/.
- ↑ "Telsy TRT" (in en-US). https://blog.telsy.com/strengthen-android-privacy-and-security-via-telsy-free-secure-dns-over-tls/.
- ↑ "How to keep your ISP's nose out of your browser history with encrypted DNS" (in en-us). Ars Technica. https://arstechnica.com/information-technology/2018/04/how-to-keep-your-isps-nose-out-of-your-browser-history-with-encrypted-dns/.
- ↑ "DNS over TLS - Cloudflare Resolver" (in en). https://developers.cloudflare.com/1.1.1.1/dns-over-tls/.
- ↑ "Google Public DNS now supports DNS-over-TLS" (in en). https://security.googleblog.com/2019/01/google-public-dns-now-supports-dns-over.html.
- ↑ "Quad9, a Public DNS Resolver - with Security". 21 November 2017. https://labs.ripe.net/Members/stephane_bortzmeyer/quad9-a-public-dns-resolver-with-security.
- ↑ "Troubleshooting DNS over TLS". 13 May 2018. https://medium.com/@nykolas.z/troubleshooting-dns-over-tls-e7ca570b6337.[user-generated source]
- ↑ "LibreDNS" (in en). https://libredns.gr/.
- ↑ "Managing encrypted DNS connections (DNS over TLS, DNS over HTTPS) with Circle" (in en-US). http://support.meetcircle.com/hc/en-us/articles/360040113372.
- ↑ Gallagher, Sean (16 November 2017). "New Quad9 DNS service blocks malicious domains for everyone". Ars Technica. https://arstechnica.com/information-technology/2017/11/new-quad9-dns-service-blocks-malicious-domains-for-everyone/. "The system blocks domains associated with botnets, phishing attacks, and other malicious Internet hosts."
- ↑ "Parental Control with DNS over TLS Support" (in en). https://cleanbrowsing.org/.
- ↑ "Parental Control with DNS Over HTTPS (DoH) Support" (in en). https://cleanbrowsing.org/.
- ↑ "Products" (in en). https://blockerdns.com/products.
- ↑ "Protect your privacy with DNS-over-TLS on SafeDNS" (in en). https://www.safedns.com/en/news/safedns-supports-dns-over-tls/.
- ↑ Claburn, Thomas (2020-05-20). "Google rolls out pro-privacy DNS-over-HTTPS support in Chrome 83... with a handy kill switch for corporate IT" (in en). https://www.theregister.com/2020/05/20/google_chrome_83/.
External links
- RFC 7858 – Specification for DNS over Transport Layer Security (TLS)
- RFC 8310 – Usage Profiles for DNS over TLS and DNS over DTLS
- DNS Privacy Project: dnsprivacy.org
Original source: https://en.wikipedia.org/wiki/DNS over TLS.
Read more |