DoH and DoT: Difference between revisions

Back up to the Routers Category
From AAISP Support Site
 
(42 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__<indicator name="Routers">[[File:menu-router.svg|link=:Category:Routers|30px|Back up to the Routers Category]]</indicator>
__NOTOC__<indicator name="Routers">[[File:menu-router.svg|link=:Category:Routers|30px|Back up to the Routers Category]]</indicator>


=A trial service=
=DNS over HTTP and DNS over TLS=
Andrews & Arnold does not yet support DoH or DoT. This page is work in progress.


A&A run DNS over HTTPS (DoH) and DNS over TLS (DoT) resolvers for customer use. There is information here at [https://aa.net.uk/dns https://aa.net.uk/dns] which includes information on privacy and the terms and conditions.


As of September 2019, this is considered a 'trial' service, but is expected to continue and be an 'official' service for customers.
=Help with browsers and devices=
==FireFox==


=A&A DNS Servers=
Menu -> Preferences -> Scroll down to Network Setting... -> Scroll down and tick 'Enable DNS over HTTPS' and enter in a Custom provider
[[File:Firefox-DoH.png|thumb]]


{| class="wikitable"
! Service || server ||Description
|-
| DoH || https://dns.aa.net.uk/dns-query || Usually set in your web browser, where supported.
|-
| DoT || dns.aa.net.uk || Usually set in your operating, where supported.
|-
| Standard DNS || 217.169.20.20 <br>217.169.20.21 <br>2001:8b0::2020 <br>2001:8b0::2021 || Our standard 'port 53' servers, widely used (everywhere).
|}
Our privacy statement and terms can be found at: https://aa.net.uk/dns


=Testing if it’s working=
We have a testing domain, if you go to http://encrypted-dns-tester.aa.net.uk you will be directed to a page saying if your browser used DoT or DoH. The DNS lookup and page will fail if you are not using our DoT or DoH servers. (The test page currently only works over HTTP)


Checking your browser


[[File:Chrome-DOH-tester.png|600px|center|alt=DOH test page in Chrome Browser|DOH test page in Chrome]]
In your URL bar, type: <code>about:networking#dns</code>


=Help setting DoH or DoT on browsers and devices=
At the moment there is limited support for DoT and DoH on computers generally. Browsers are starting to support DoH, and Android from version 9 supports DoT. macOS and iOS support DoH/DoT by loading a custom profile. These are new protocols and it will take time before they are widely used.


==General resources==
* [https://support.mozilla.org/en-US/kb/firefox-dns-over-https FireFox's DoH info]
*[https://www.chromium.org/developers/dns-over-https Chromium's DoH developer info]


==FireFox==
==Checking the DOH server with curl==
DoH is supported in Firefox's UI in version 69 and up.
#Menu
#Preferences
#Scroll down to Network Setting...
#Scroll down and tick 'Enable DNS over HTTPS' and enter in a Custom provider: https://dns.aa.net.uk/dns-query


[[File:Firefox-DoH.png|thumb]]
Note: curl version 7.62.0 or above is required.


Checking your browser
curl --doh-url https://doh-server https://website


In your Firefox URL bar, type: <code>about:networking</code> and enter. Then click DNS on the left, and you should see your DNS lookups, and they should have TRR (Trusted Recursive Resolver) listed as true.
This will download the webpage but would have used the DOH server to resolve the DNS.


==Chrome==
==Chrome==
DoH is expected to be a feature in Chrome version 78
DoH is expected to be a feature in Chrome version 78 or 79.

https://blog.chromium.org/2019/09/experimenting-with-same-provider-dns.html


==Android (DoT)==
==Android (DoT)==

DoT is supported in Android version 9 (Pie) and up


[[File:Android-dot-setting.jpg|thumb]]
[[File:Android-dot-setting.jpg|thumb]]
#Settings
#Search for “DNS” in settings search bar
#Go to PrivateDNS setting screen
#Tap ‘Private DNS provider hostname’ and set: dns.aa.net.uk
#Click Save

==iOS==

This has been tested on iOS 15. It sensibly warns you that the config isn't signed and that someone could spy on your phone's DNS, but if you click through it seems to "just work". You should review mobileconfig profiles before installing.

#Download the mobileconfig file for the service you want to enable: [https://testing.me.uk/aa-https.mobileconfig DoH] or [https://testing.me.uk/aa-tls.mobileconfig DoT]
#Navigate to the downloaded file in the "files" app and open it - this should add it to settings
#Navigate to the "VPN & Device Management" section of settings and review the profile - this should activate it

==Stubby==
[https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby Stubby] is an application acts as a local DNS resolver on port 53 but does its lookups over TLS (DoT) which means it can act as a DNS proxy for your whole machine.

Adding our servers should be enough:
- address_data: 2001:8b0::2022
tls_auth_name: "dns.aa.net.uk"
- address_data: 2001:8b0::2023
tls_auth_name: "dns.aa.net.uk"
- address_data: 217.169.20.22
tls_auth_name: "dns.aa.net.uk"
- address_data: 217.169.20.23
tls_auth_name: "dns.aa.net.uk"

And once running, test with
dig +short @::1 encrypted-dns-tester.aa.net.uk
...and you should see a result.


==Using DOH with curl==

Curl version 7.62.0 and above support using DoH for its DNS lookups. Here's an example:

curl --doh-url https://dns.aa.net.uk/dns-query https://www.aa.net.uk
This will download the www.aa.net.uk webpage and would have used the DOH server to resolve the DNS.
or, try the tester page
curl --doh-url https://dns.aa.net.uk/dns-query http://encrypted-dns-tester.aa.net.uk
This will give a page saying 'You are using AAISP's encrypted DNS servers'

Latest revision as of 09:11, 7 December 2023


A trial service

A&A run DNS over HTTPS (DoH) and DNS over TLS (DoT) resolvers for customer use. There is information here at https://aa.net.uk/dns which includes information on privacy and the terms and conditions.

As of September 2019, this is considered a 'trial' service, but is expected to continue and be an 'official' service for customers.

A&A DNS Servers

Service server Description
DoH https://dns.aa.net.uk/dns-query Usually set in your web browser, where supported.
DoT dns.aa.net.uk Usually set in your operating, where supported.
Standard DNS 217.169.20.20
217.169.20.21
2001:8b0::2020
2001:8b0::2021
Our standard 'port 53' servers, widely used (everywhere).

Our privacy statement and terms can be found at: https://aa.net.uk/dns

Testing if it’s working

We have a testing domain, if you go to http://encrypted-dns-tester.aa.net.uk you will be directed to a page saying if your browser used DoT or DoH. The DNS lookup and page will fail if you are not using our DoT or DoH servers. (The test page currently only works over HTTP)


DOH test page in Chrome Browser

Help setting DoH or DoT on browsers and devices

At the moment there is limited support for DoT and DoH on computers generally. Browsers are starting to support DoH, and Android from version 9 supports DoT. macOS and iOS support DoH/DoT by loading a custom profile. These are new protocols and it will take time before they are widely used.

General resources

FireFox

DoH is supported in Firefox's UI in version 69 and up.

  1. Menu
  2. Preferences
  3. Scroll down to Network Setting...
  4. Scroll down and tick 'Enable DNS over HTTPS' and enter in a Custom provider: https://dns.aa.net.uk/dns-query
Firefox-DoH.png

Checking your browser

In your Firefox URL bar, type: about:networking and enter. Then click DNS on the left, and you should see your DNS lookups, and they should have TRR (Trusted Recursive Resolver) listed as true.

Chrome

DoH is expected to be a feature in Chrome version 78 or 79.

https://blog.chromium.org/2019/09/experimenting-with-same-provider-dns.html

Android (DoT)

DoT is supported in Android version 9 (Pie) and up

Android-dot-setting.jpg
  1. Settings
  2. Search for “DNS” in settings search bar
  3. Go to PrivateDNS setting screen
  4. Tap ‘Private DNS provider hostname’ and set: dns.aa.net.uk
  5. Click Save

iOS

This has been tested on iOS 15. It sensibly warns you that the config isn't signed and that someone could spy on your phone's DNS, but if you click through it seems to "just work". You should review mobileconfig profiles before installing.

  1. Download the mobileconfig file for the service you want to enable: DoH or DoT
  2. Navigate to the downloaded file in the "files" app and open it - this should add it to settings
  3. Navigate to the "VPN & Device Management" section of settings and review the profile - this should activate it

Stubby

Stubby is an application acts as a local DNS resolver on port 53 but does its lookups over TLS (DoT) which means it can act as a DNS proxy for your whole machine.

Adding our servers should be enough:

 - address_data: 2001:8b0::2022
   tls_auth_name: "dns.aa.net.uk"
 - address_data: 2001:8b0::2023
   tls_auth_name: "dns.aa.net.uk"
 - address_data: 217.169.20.22
   tls_auth_name: "dns.aa.net.uk"
 - address_data: 217.169.20.23
   tls_auth_name: "dns.aa.net.uk"

And once running, test with

dig +short @::1 encrypted-dns-tester.aa.net.uk

...and you should see a result.


Using DOH with curl

Curl version 7.62.0 and above support using DoH for its DNS lookups. Here's an example:

curl --doh-url https://dns.aa.net.uk/dns-query https://www.aa.net.uk

This will download the www.aa.net.uk webpage and would have used the DOH server to resolve the DNS. or, try the tester page

curl --doh-url https://dns.aa.net.uk/dns-query http://encrypted-dns-tester.aa.net.uk

This will give a page saying 'You are using AAISP's encrypted DNS servers'