SlideShare a Scribd company logo
© Men & Mice http://menandmice.com
How to send DNS over
anything encrypted
1
© Men & Mice http://menandmice.com
Agenda
The DNS-Privacy group (DPRIVE) inside the Internet Engineering
Task Force (IETF), as well as a number of dedicated people outside
the IETF, are working on new transport protocols to allow for
encrypting DNS traffic between DNS clients and resolvers. Current
developments include:
•DNS over TLS (RFC 7858)
•DNS over DTLS (RFC 8094)
•DNS over HTTP(S) (ID-draft)
•DNS over QUIC (ID-draft)
•DNS over DNSCrypt (outside IETF)
•DNS over TOR (outside IETF)
2
© Men & Mice http://menandmice.com
DNS Privacy
3
© Men & Mice http://menandmice.com
DNS is Metadata
•IETF started the DPRIVE (DNS Privacy Working
Group) after the Snowden revelations
•RFC 7626 DNS Privacy Considerations

https://tools.ietf.org/html/rfc7626
•current focus of DPRIVE is the client to resolver
channel
•creating protocols that are stealthy sometimes
painfully collides with clean protocol design
4
© Men & Mice http://menandmice.com
DNS OVER TLS
5
© Men & Mice http://menandmice.com
DNS-over-TLS
•RFC 7858 Specification for DNS over Transport
Layer Security (TLS)
•DNS wireformat over TLS over TCP
•Port 853 (TCP)
•encryption and authentication
6
© Men & Mice http://menandmice.com
DNS-over-TLS Performance
•performance of DNS-over-TLS can be quite good
•for existing sessions with TLS 1.3 as good as DNS-
over-UDP
•pipelining
•TCP fast open
•0-RTT resume
•current implementations are not optimized
7
© Men & Mice http://menandmice.com
DNS-over-TLS Implementations
•Client
•Unbound (as local forwarder)
•Stubby (getdnsapi)
•dnsfwd
•Server
•Unbound (as remote resolver)
•Knot
•any DNS server via stunnel
8
© Men & Mice http://menandmice.com
DNS-over-TLS Developments
•TLS 1.3 deployment stalled because of
misbehaving middle-boxes (BlueCoat)
•controversial in the IETF, but useful: multiplexing
HTTPS and DNS on port 443
•https://gitlab.com/dkg/hddemux
9
© Men & Mice http://menandmice.com
DNS OVER DTLS
10
© Men & Mice http://menandmice.com
DNS-over-DTLS
•RFC 8094 DNS over Datagram Transport Layer
Security (DTLS)
•DNS wireformat over TLS over UDP
•Port 853 (UDP)
•encryption and authentication
11
© Men & Mice http://menandmice.com
DNS-over-DTLS Issues
•adversary can block DNS queries
•resource exhaustion attacks against DNS server
possible
•no known implementations
12
© Men & Mice http://menandmice.com
DNS OVER HTTP(S)
13
© Men & Mice http://menandmice.com
DNS-over-HTTP(S)
•IETF Internet Draft DNS Queries over HTTPS

https://tools.ietf.org/html/draft-hoffman-dns-over-https
•DNS HTTP-Format over HTTPS over TCP
•Port 443 (HTTP/2)
•URL: https://server/.well-known/dns-query
•base64url encoded DNS data, Content-Header

application/dns-udpwireformat
•encryption and authentication
14
© Men & Mice http://menandmice.com
DNS-over-HTTP(S) Benefits
•HTTPS might be the only option in highly
firewalled networks
•easy to implement for (Web-)Developers
(JavaScript etc)
15
© Men & Mice http://menandmice.com
DNS-over-HTTP(S) additional
documents
•Representing DNS Messages in JSON

https://tools.ietf.org/html/draft-hoffman-dns-in-json
•DNS Messages in XML (expired)

https://tools.ietf.org/html/draft-mohan-dns-query-xml
16
© Men & Mice http://menandmice.com
DNS-over-HTTP(S) 

similar implementations
•DNS over JSON over HTTPS over TCP
•Google DNS Server-Side

https://developers.google.com/speed/public-dns/docs/dns-
over-https
•dingo - A DNS client in Go that supports Google DNS
over HTTPS

https://github.com/pforemski/dingo
•CoreDNS

https://coredns.io/2016/11/26/dns-over-https/
17
© Men & Mice http://menandmice.com
DNS-WIREFORMAT OVER
HTTPS
18
© Men & Mice http://menandmice.com
DNS-Wireformat-over-HTTP(S)
•DNS wireformat over HTTP(S) over TCP
•Internet Draft DNS wire-format over HTTP

https://tools.ietf.org/html/draft-ietf-dnsop-dns-wireformat-http
•Port 80 or 443 (HTTP 1.1 or HTTP/2)
•URL: https://server/.well-known/dns-wireformat
•Content-Header application/dns-wireformat
•may provide encryption and authentication
•DNS wire-format data is wrapped with an HTTP header and
transmitted on port 80 or 443
19
© Men & Mice http://menandmice.com
DNS OVER QUIC
20
© Men & Mice http://menandmice.com
DNS-Wireformat-over-HTTP(S)
•DNS over QUIC over UDP
•Specification of DNS over Dedicated QUIC
Connections

https://tools.ietf.org/html/draft-huitema-quic-dnsoquic
21
© Men & Mice http://menandmice.com
DNS-over-QUIC
•modern TCP replacement from Google, now
standardised in the IETF
•uses UDP, implements TCP features
•usually implemented in applications, not OS kernel
•includes TLS 1.3
•0-RTT
•performance in-par with DNS-over-UDP
•QUIC Documents https://tools.ietf.org/wg/quic/
22
© Men & Mice http://menandmice.com
DNS-over-QUIC Comparison
23
Source: https://datatracker.ietf.org/meeting/99/materials/slides-99-dprive-dns-over-quic
© Men & Mice http://menandmice.com
DNS OVER OPPORTUNISTIC
IPSEC
24
© Men & Mice http://menandmice.com
DNS OVER OPPORTUNISTIC IPSEC
•DNS over UDP or TCP over IPSec
•DNS queries will be tunnelled via IPSec
•provides encryption (but only limited
authentication)
•Unauthenticated Opportunistic IPsec

https://libreswan.org/wiki/
HOWTO:_Unauthenticated_Opportunistic_IPsec
25
© Men & Mice http://menandmice.com
DNS-over-opportunistic IPSEC
Implementations
• LibreSWAN and Unbound (IPSec Module)
26
© Men & Mice http://menandmice.com
DNS-over-opportunistic IPSEC
additional work
•make IPSec work in case of heavy firewalling: 

RFC 8229 TCP Encapsulation of IKE and IPsec
Packets
•allows IPSec to work on Port 443 

(multiplexed with HTTPS)
27
© Men & Mice http://menandmice.com
DNS OVER DNSCrypt
28
© Men & Mice http://menandmice.com
DNS OVER DNSCrypt
•DNS over DNSCrypt over UDP or TCP
•DNSCrypt is a DNS privacy solution originally developed
by OpenDNS (now Cisco)
•encryption and authentication
•protocol is open source, but somewhat underdocumented
•client operates a DNS proxy that tunnels DNS over
DNSCrypt
•some, but not all DNSCrypt resolver support DNSSEC
29
© Men & Mice http://menandmice.com
DNS OVER Tor
30
© Men & Mice http://menandmice.com
DNS OVER TOR
•DNS over Tor over TCP
•Port 9053
•Tor client proxies the DNS queries through a tor
circuit
•only A/AAAA-Records supported (no TXT, MX, SOA …)
•no DNSSEC, rogue Tor exit node can spoof DNS traffic
•> 30 % of Tor exit nodes use Google public DNS
31
© Men & Mice http://menandmice.com
Padding of DNS data
32
© Men & Mice http://menandmice.com
DNS padding
•DNS query/responses are small data chunks
•traffic analysis might be acute when dealing with
DNS queries
•the IETF is working on padding schemes for DNS
to make traffic analysis more difficult
•RFC 7830 The EDNS(0) Padding Option
•Padding Policy for EDNS(0)

https://tools.ietf.org/html/draft-ietf-dprive-padding-policy
33
© Men & Mice http://menandmice.com
Performance
34
© Men & Mice http://menandmice.com
Performance 

Alexa Top 1000 domains
35
© Men & Mice http://menandmice.com
Performance 

1000 DNS queries from office network
36
© Men & Mice http://menandmice.com
Links
37
© Men & Mice http://menandmice.com
Informational resources
•DNS Privacy Project

https://dnsprivacy.org
•Specification for DNS over Transport Layer Security (TLS)

https://tools.ietf.org/html/rfc7858
•public DNS resolver with DNS over TLS

https://dnsprivacy.org/wiki/display/DP/
DNS+Privacy+Test+Servers
•HDDMUX sourcecode

https://0xacab.org/dkg/hddemux
38
© Men & Mice http://menandmice.com
Informational resources
•DNSCrypt

https://dnscrypt.org/
• DNSCrypt-proxy

https://github.com/jedisct1/dnscrypt-proxy
•list of DNSCrypt-Resolver

https://dnscrypt.org/dnscrypt-resolvers.html
•Simple DNSCrypt for Windows

https://simplednscrypt.org/
•DNSCrypt GUI für macOS

https://github.com/alterstep/dnscrypt-osxclient
•DNSCrypt Blacklist Konfiguration

https://github.com/jedisct1/dnscrypt-proxy/blob/master/contrib/domains-
blacklist.conf
39
© Men & Mice http://menandmice.com
Informational resources
•Tor-Project

https://torproject.org
• The Effect of DNS on Tor’s Anonymity

https://freedom-to-tinker.com/2016/09/29/the-
effect-of-dns-on-tors-anonymity/
• DNS-over-TLS Forwarder

https://github.com/randomstuff/dnsfwd
40
© Men & Mice http://menandmice.com
Next
41
© Men & Mice http://menandmice.com
Men & Mice DNS Training
•Introduction to DNS & BIND Hands-On Class
•September 18 – 20, 2017 (Zurich, Switzerland)
42
https://www.menandmice.com/training/
© Men & Mice http://menandmice.com
Men & Mice DNS Training
•Introduction & Advanced DNS and BIND Topics
Hands-On Class
•September 18 – 22, 2017 (Zurich, Switzerland)
43
https://www.menandmice.com/training/
© Men & Mice http://menandmice.com
Men & Mice DNS Training
•DNSSEC and DANE (German Language)
•December 4-12, 2017, Essen, DE
44
http://linuxhotel.de/
© Men & Mice http://menandmice.com
Thank you!
Questions? Comments?
45

More Related Content

PDF
Part 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOS
PDF
Yeti DNS - Experimenting at the root
PDF
The DNSSEC KSK of the root rolls
PDF
DNS High-Availability Tools - Open-Source Load Balancing Solutions
PDF
DNSSEC signing Tutorial
PDF
Part 2 - Local Name Resolution in Windows Networks
PDF
Namespaces for Local Networks
PDF
DNSTap Webinar
Part 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOS
Yeti DNS - Experimenting at the root
The DNSSEC KSK of the root rolls
DNS High-Availability Tools - Open-Source Load Balancing Solutions
DNSSEC signing Tutorial
Part 2 - Local Name Resolution in Windows Networks
Namespaces for Local Networks
DNSTap Webinar

What's hot (20)

PDF
BIND 9 logging best practices
PDF
Keeping DNS server up-and-running with “runit
PDF
The CAA-Record for increased encryption security
PDF
RIPE 71 and IETF 94 reports webinar
PDF
What is new in BIND 9.11?
PDF
SMTP STS (Strict Transport Security) vs. SMTP with DANE
PDF
Passive DNS Collection -- the 'dnstap' approach, by Paul Vixie [APNIC 38 / AP...
PDF
Windows Server 2016 Webinar
PDF
Kea DHCP – the new open source DHCP server from ISC
PDF
Encrypted DNS - DNS over TLS / DNS over HTTPS
PPTX
DoH, DoT and ESNI
ODP
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
PDF
Understanding and Deploying DNSSEC, by Champika Wijayatunga [APRICOT 2015]
PDF
Passive DNS Collection – Henry Stern, Cisco
PDF
Troubleshooting Tips from a Docker Support Engineer
PDF
Windows 2012 and DNSSEC
PDF
Get your instance by name integration of nova, neutron and designate
PDF
Dnssec
PDF
DNSSEC Tutorial; USENIX LISA 2013
PDF
Debugging Network Issues
BIND 9 logging best practices
Keeping DNS server up-and-running with “runit
The CAA-Record for increased encryption security
RIPE 71 and IETF 94 reports webinar
What is new in BIND 9.11?
SMTP STS (Strict Transport Security) vs. SMTP with DANE
Passive DNS Collection -- the 'dnstap' approach, by Paul Vixie [APNIC 38 / AP...
Windows Server 2016 Webinar
Kea DHCP – the new open source DHCP server from ISC
Encrypted DNS - DNS over TLS / DNS over HTTPS
DoH, DoT and ESNI
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
Understanding and Deploying DNSSEC, by Champika Wijayatunga [APRICOT 2015]
Passive DNS Collection – Henry Stern, Cisco
Troubleshooting Tips from a Docker Support Engineer
Windows 2012 and DNSSEC
Get your instance by name integration of nova, neutron and designate
Dnssec
DNSSEC Tutorial; USENIX LISA 2013
Debugging Network Issues
Ad

Viewers also liked (20)

PDF
Scripting and automation with the Men & Mice Suite
PDF
Cisco Connect Toronto 2017 - Accelerating Incident Response in Organizations...
ODP
DerbyCon 7.0 Legacy: Regular Expressions (Regex) Overview
PDF
Comodo Multi Domain SSL Certificate: Key Features by CheapSSLsecurity
PDF
Umbrella Webcast: Redefining Security for the Nomadic Worker
PPTX
Microsoft Cyber Security IT-Camp
PDF
Dns Hardening Linux Os
ODP
OISF: Regular Expressions (Regex) Overview
PPTX
Cyber crime & security
PPTX
Phishing Scams: 8 Helpful Tips to Keep You Safe
PDF
Role of DNS in Botnet Command and Control
PDF
Cisco Connect Toronto 2017 - Anatomy-of-attack
PPTX
Cyber Security # Lec 2
PPTX
Tcp udp
PDF
Social Networks And Phishing
PDF
Symantec (ISTR) Internet Security Threat Report Volume 22
ODP
(ISC)2 Cincinnati Tri-State Chapter: Phishing Forensics - Is it just suspicio...
PDF
Cisco umbrella overview
PDF
Cisco Connect Toronto 2017 - NFV/SDN Platform for Orchestrating Cloud and vBr...
PPT
Dns ppt
Scripting and automation with the Men & Mice Suite
Cisco Connect Toronto 2017 - Accelerating Incident Response in Organizations...
DerbyCon 7.0 Legacy: Regular Expressions (Regex) Overview
Comodo Multi Domain SSL Certificate: Key Features by CheapSSLsecurity
Umbrella Webcast: Redefining Security for the Nomadic Worker
Microsoft Cyber Security IT-Camp
Dns Hardening Linux Os
OISF: Regular Expressions (Regex) Overview
Cyber crime & security
Phishing Scams: 8 Helpful Tips to Keep You Safe
Role of DNS in Botnet Command and Control
Cisco Connect Toronto 2017 - Anatomy-of-attack
Cyber Security # Lec 2
Tcp udp
Social Networks And Phishing
Symantec (ISTR) Internet Security Threat Report Volume 22
(ISC)2 Cincinnati Tri-State Chapter: Phishing Forensics - Is it just suspicio...
Cisco umbrella overview
Cisco Connect Toronto 2017 - NFV/SDN Platform for Orchestrating Cloud and vBr...
Dns ppt
Ad

Similar to How to send DNS over anything encrypted (20)

PDF
Report from IETF 89 in London - DNS, DHCP and IPv6
PPTX
Understanding DNS Security
PDF
MITRE ATT&CKcon 2018: Playing Devil’s Advocate to Security Initiatives with A...
PPTX
Network tunneling techniques
PDF
NZNOG 2020: DOH
PDF
@dtmsecurity Mitre ATT&CKcon - Playing Devil's Advocate to Security Initiativ...
PPTX
How DNS works and How to secure it: An Introduction
PPT
Bo2004
PPTX
DNS Security Issues NES 554 for DNS Security
PDF
RIPE 69 & IETF 91 Webinar - DNS-Privacy, IPv6, DANE and DHCP(v6)
PPT
PDF
DNS – Strategies for Reducing Data Leakage & Protecting Online Privacy – Hack...
PDF
2nd ICANN APAC-TWNIC Engagement Forum: DNS Oblivion
PPTX
IGF 2023: DNS Privacy
PDF
Lets talk dns
PDF
RIPE 82: DNS Evolution
PDF
08 tcp-dns
PPTX
2_Chapter 2_DNS.pptx
PDF
DNS Over HTTPS by Michael Casadevall
PDF
getdns PyCon presentation
Report from IETF 89 in London - DNS, DHCP and IPv6
Understanding DNS Security
MITRE ATT&CKcon 2018: Playing Devil’s Advocate to Security Initiatives with A...
Network tunneling techniques
NZNOG 2020: DOH
@dtmsecurity Mitre ATT&CKcon - Playing Devil's Advocate to Security Initiativ...
How DNS works and How to secure it: An Introduction
Bo2004
DNS Security Issues NES 554 for DNS Security
RIPE 69 & IETF 91 Webinar - DNS-Privacy, IPv6, DANE and DHCP(v6)
DNS – Strategies for Reducing Data Leakage & Protecting Online Privacy – Hack...
2nd ICANN APAC-TWNIC Engagement Forum: DNS Oblivion
IGF 2023: DNS Privacy
Lets talk dns
RIPE 82: DNS Evolution
08 tcp-dns
2_Chapter 2_DNS.pptx
DNS Over HTTPS by Michael Casadevall
getdns PyCon presentation

More from Men and Mice (12)

PPTX
Cisco Live 2019: New Best Practices for Hybrid and Multicloud Network Strategies
PDF
Fighting Abuse with DNS
PDF
PowerDNS Webinar - Part 2
PDF
PowerDNS Webinar
PDF
IETF 93 Review Webinar
PDF
RIPE 70 Report Webinar
PDF
DNSSEC best practices Webinar
PDF
IETF 92 Webinar
PDF
The KNOT DNS Server
PDF
DNSSEC and DANE – E-Mail security reloaded
PDF
IETF 90 Report – DNS, DHCP, IPv6 and DANE
PDF
RIPE 68 Webinar
Cisco Live 2019: New Best Practices for Hybrid and Multicloud Network Strategies
Fighting Abuse with DNS
PowerDNS Webinar - Part 2
PowerDNS Webinar
IETF 93 Review Webinar
RIPE 70 Report Webinar
DNSSEC best practices Webinar
IETF 92 Webinar
The KNOT DNS Server
DNSSEC and DANE – E-Mail security reloaded
IETF 90 Report – DNS, DHCP, IPv6 and DANE
RIPE 68 Webinar

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
KodekX | Application Modernization Development
PPTX
Cloud computing and distributed systems.
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Spectroscopy.pptx food analysis technology
PDF
Empathic Computing: Creating Shared Understanding
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Understanding_Digital_Forensics_Presentation.pptx
20250228 LYD VKU AI Blended-Learning.pptx
KodekX | Application Modernization Development
Cloud computing and distributed systems.
Unlocking AI with Model Context Protocol (MCP)
Network Security Unit 5.pdf for BCA BBA.
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Digital-Transformation-Roadmap-for-Companies.pptx
Spectroscopy.pptx food analysis technology
Empathic Computing: Creating Shared Understanding
Chapter 3 Spatial Domain Image Processing.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Programs and apps: productivity, graphics, security and other tools
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
cuic standard and advanced reporting.pdf
Spectral efficient network and resource selection model in 5G networks
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Dropbox Q2 2025 Financial Results & Investor Presentation
Understanding_Digital_Forensics_Presentation.pptx

How to send DNS over anything encrypted

  • 1. © Men & Mice http://menandmice.com How to send DNS over anything encrypted 1
  • 2. © Men & Mice http://menandmice.com Agenda The DNS-Privacy group (DPRIVE) inside the Internet Engineering Task Force (IETF), as well as a number of dedicated people outside the IETF, are working on new transport protocols to allow for encrypting DNS traffic between DNS clients and resolvers. Current developments include: •DNS over TLS (RFC 7858) •DNS over DTLS (RFC 8094) •DNS over HTTP(S) (ID-draft) •DNS over QUIC (ID-draft) •DNS over DNSCrypt (outside IETF) •DNS over TOR (outside IETF) 2
  • 3. © Men & Mice http://menandmice.com DNS Privacy 3
  • 4. © Men & Mice http://menandmice.com DNS is Metadata •IETF started the DPRIVE (DNS Privacy Working Group) after the Snowden revelations •RFC 7626 DNS Privacy Considerations
 https://tools.ietf.org/html/rfc7626 •current focus of DPRIVE is the client to resolver channel •creating protocols that are stealthy sometimes painfully collides with clean protocol design 4
  • 5. © Men & Mice http://menandmice.com DNS OVER TLS 5
  • 6. © Men & Mice http://menandmice.com DNS-over-TLS •RFC 7858 Specification for DNS over Transport Layer Security (TLS) •DNS wireformat over TLS over TCP •Port 853 (TCP) •encryption and authentication 6
  • 7. © Men & Mice http://menandmice.com DNS-over-TLS Performance •performance of DNS-over-TLS can be quite good •for existing sessions with TLS 1.3 as good as DNS- over-UDP •pipelining •TCP fast open •0-RTT resume •current implementations are not optimized 7
  • 8. © Men & Mice http://menandmice.com DNS-over-TLS Implementations •Client •Unbound (as local forwarder) •Stubby (getdnsapi) •dnsfwd •Server •Unbound (as remote resolver) •Knot •any DNS server via stunnel 8
  • 9. © Men & Mice http://menandmice.com DNS-over-TLS Developments •TLS 1.3 deployment stalled because of misbehaving middle-boxes (BlueCoat) •controversial in the IETF, but useful: multiplexing HTTPS and DNS on port 443 •https://gitlab.com/dkg/hddemux 9
  • 10. © Men & Mice http://menandmice.com DNS OVER DTLS 10
  • 11. © Men & Mice http://menandmice.com DNS-over-DTLS •RFC 8094 DNS over Datagram Transport Layer Security (DTLS) •DNS wireformat over TLS over UDP •Port 853 (UDP) •encryption and authentication 11
  • 12. © Men & Mice http://menandmice.com DNS-over-DTLS Issues •adversary can block DNS queries •resource exhaustion attacks against DNS server possible •no known implementations 12
  • 13. © Men & Mice http://menandmice.com DNS OVER HTTP(S) 13
  • 14. © Men & Mice http://menandmice.com DNS-over-HTTP(S) •IETF Internet Draft DNS Queries over HTTPS
 https://tools.ietf.org/html/draft-hoffman-dns-over-https •DNS HTTP-Format over HTTPS over TCP •Port 443 (HTTP/2) •URL: https://server/.well-known/dns-query •base64url encoded DNS data, Content-Header
 application/dns-udpwireformat •encryption and authentication 14
  • 15. © Men & Mice http://menandmice.com DNS-over-HTTP(S) Benefits •HTTPS might be the only option in highly firewalled networks •easy to implement for (Web-)Developers (JavaScript etc) 15
  • 16. © Men & Mice http://menandmice.com DNS-over-HTTP(S) additional documents •Representing DNS Messages in JSON
 https://tools.ietf.org/html/draft-hoffman-dns-in-json •DNS Messages in XML (expired)
 https://tools.ietf.org/html/draft-mohan-dns-query-xml 16
  • 17. © Men & Mice http://menandmice.com DNS-over-HTTP(S) 
 similar implementations •DNS over JSON over HTTPS over TCP •Google DNS Server-Side
 https://developers.google.com/speed/public-dns/docs/dns- over-https •dingo - A DNS client in Go that supports Google DNS over HTTPS
 https://github.com/pforemski/dingo •CoreDNS
 https://coredns.io/2016/11/26/dns-over-https/ 17
  • 18. © Men & Mice http://menandmice.com DNS-WIREFORMAT OVER HTTPS 18
  • 19. © Men & Mice http://menandmice.com DNS-Wireformat-over-HTTP(S) •DNS wireformat over HTTP(S) over TCP •Internet Draft DNS wire-format over HTTP
 https://tools.ietf.org/html/draft-ietf-dnsop-dns-wireformat-http •Port 80 or 443 (HTTP 1.1 or HTTP/2) •URL: https://server/.well-known/dns-wireformat •Content-Header application/dns-wireformat •may provide encryption and authentication •DNS wire-format data is wrapped with an HTTP header and transmitted on port 80 or 443 19
  • 20. © Men & Mice http://menandmice.com DNS OVER QUIC 20
  • 21. © Men & Mice http://menandmice.com DNS-Wireformat-over-HTTP(S) •DNS over QUIC over UDP •Specification of DNS over Dedicated QUIC Connections
 https://tools.ietf.org/html/draft-huitema-quic-dnsoquic 21
  • 22. © Men & Mice http://menandmice.com DNS-over-QUIC •modern TCP replacement from Google, now standardised in the IETF •uses UDP, implements TCP features •usually implemented in applications, not OS kernel •includes TLS 1.3 •0-RTT •performance in-par with DNS-over-UDP •QUIC Documents https://tools.ietf.org/wg/quic/ 22
  • 23. © Men & Mice http://menandmice.com DNS-over-QUIC Comparison 23 Source: https://datatracker.ietf.org/meeting/99/materials/slides-99-dprive-dns-over-quic
  • 24. © Men & Mice http://menandmice.com DNS OVER OPPORTUNISTIC IPSEC 24
  • 25. © Men & Mice http://menandmice.com DNS OVER OPPORTUNISTIC IPSEC •DNS over UDP or TCP over IPSec •DNS queries will be tunnelled via IPSec •provides encryption (but only limited authentication) •Unauthenticated Opportunistic IPsec
 https://libreswan.org/wiki/ HOWTO:_Unauthenticated_Opportunistic_IPsec 25
  • 26. © Men & Mice http://menandmice.com DNS-over-opportunistic IPSEC Implementations • LibreSWAN and Unbound (IPSec Module) 26
  • 27. © Men & Mice http://menandmice.com DNS-over-opportunistic IPSEC additional work •make IPSec work in case of heavy firewalling: 
 RFC 8229 TCP Encapsulation of IKE and IPsec Packets •allows IPSec to work on Port 443 
 (multiplexed with HTTPS) 27
  • 28. © Men & Mice http://menandmice.com DNS OVER DNSCrypt 28
  • 29. © Men & Mice http://menandmice.com DNS OVER DNSCrypt •DNS over DNSCrypt over UDP or TCP •DNSCrypt is a DNS privacy solution originally developed by OpenDNS (now Cisco) •encryption and authentication •protocol is open source, but somewhat underdocumented •client operates a DNS proxy that tunnels DNS over DNSCrypt •some, but not all DNSCrypt resolver support DNSSEC 29
  • 30. © Men & Mice http://menandmice.com DNS OVER Tor 30
  • 31. © Men & Mice http://menandmice.com DNS OVER TOR •DNS over Tor over TCP •Port 9053 •Tor client proxies the DNS queries through a tor circuit •only A/AAAA-Records supported (no TXT, MX, SOA …) •no DNSSEC, rogue Tor exit node can spoof DNS traffic •> 30 % of Tor exit nodes use Google public DNS 31
  • 32. © Men & Mice http://menandmice.com Padding of DNS data 32
  • 33. © Men & Mice http://menandmice.com DNS padding •DNS query/responses are small data chunks •traffic analysis might be acute when dealing with DNS queries •the IETF is working on padding schemes for DNS to make traffic analysis more difficult •RFC 7830 The EDNS(0) Padding Option •Padding Policy for EDNS(0)
 https://tools.ietf.org/html/draft-ietf-dprive-padding-policy 33
  • 34. © Men & Mice http://menandmice.com Performance 34
  • 35. © Men & Mice http://menandmice.com Performance 
 Alexa Top 1000 domains 35
  • 36. © Men & Mice http://menandmice.com Performance 
 1000 DNS queries from office network 36
  • 37. © Men & Mice http://menandmice.com Links 37
  • 38. © Men & Mice http://menandmice.com Informational resources •DNS Privacy Project
 https://dnsprivacy.org •Specification for DNS over Transport Layer Security (TLS)
 https://tools.ietf.org/html/rfc7858 •public DNS resolver with DNS over TLS
 https://dnsprivacy.org/wiki/display/DP/ DNS+Privacy+Test+Servers •HDDMUX sourcecode
 https://0xacab.org/dkg/hddemux 38
  • 39. © Men & Mice http://menandmice.com Informational resources •DNSCrypt
 https://dnscrypt.org/ • DNSCrypt-proxy
 https://github.com/jedisct1/dnscrypt-proxy •list of DNSCrypt-Resolver
 https://dnscrypt.org/dnscrypt-resolvers.html •Simple DNSCrypt for Windows
 https://simplednscrypt.org/ •DNSCrypt GUI für macOS
 https://github.com/alterstep/dnscrypt-osxclient •DNSCrypt Blacklist Konfiguration
 https://github.com/jedisct1/dnscrypt-proxy/blob/master/contrib/domains- blacklist.conf 39
  • 40. © Men & Mice http://menandmice.com Informational resources •Tor-Project
 https://torproject.org • The Effect of DNS on Tor’s Anonymity
 https://freedom-to-tinker.com/2016/09/29/the- effect-of-dns-on-tors-anonymity/ • DNS-over-TLS Forwarder
 https://github.com/randomstuff/dnsfwd 40
  • 41. © Men & Mice http://menandmice.com Next 41
  • 42. © Men & Mice http://menandmice.com Men & Mice DNS Training •Introduction to DNS & BIND Hands-On Class •September 18 – 20, 2017 (Zurich, Switzerland) 42 https://www.menandmice.com/training/
  • 43. © Men & Mice http://menandmice.com Men & Mice DNS Training •Introduction & Advanced DNS and BIND Topics Hands-On Class •September 18 – 22, 2017 (Zurich, Switzerland) 43 https://www.menandmice.com/training/
  • 44. © Men & Mice http://menandmice.com Men & Mice DNS Training •DNSSEC and DANE (German Language) •December 4-12, 2017, Essen, DE 44 http://linuxhotel.de/
  • 45. © Men & Mice http://menandmice.com Thank you! Questions? Comments? 45