DNS over TLS
By default, DNS is sent over a plaintext connection. DNS over TLS (DoT) is a standard for encrypting DNS queries to keep them secure and private. DoT uses the same security protocol, TLS, that HTTPS websites use to encrypt and authenticate communications.
Obtain your DoT hostname
Each Gateway location has a unique DoT hostname. Locations and corresponding DoT hostnames have policies associated with them.
Navigate to the Locations page to visualize your location.
If you have more than one location set up, you will see a list of all your locations.
Expand the location card for the location whose DoT hostname you'd like to retrieve.
Get the DoT hostname for the location.
In the example below, the DoT hostname is:
Take note of the DoT hostname.
Configure your DoT client
Depending on your operating system, you can choose from a variety of standalone DoT clients.
To configure your DoT client, use the following IP address and hostname:
Hostname: DoT hostname for a chosen location (above this is 9y65g5srsm.cloudflare-gateway.com)IP address: 220.127.116.11
Alternatively, stub resolvers (e.g., Unbound) support DoT natively.
# Unbound TLS Configtls-cert-bundle: "/etc/ssl/cert.pem"# Forwarding Configforward-zone: name: "." forward-tls-upstream: yes forward-addr: 18.104.22.168@853#xxxxxxxxx.cloudflare-gateway.com forward-addr: 22.214.171.124@853#xxxxxxxxx.cloudflare-gateway.com forward-addr: 2a06:98c1:54::xxxx#xxxxxxxxx.cloudflare-gateway.com
Supported TLS versions
Cloudflare's DNS over TLS supports TLS 1.3 and TLS 1.2.