Skip to Content

Solved: How do I configure FortiGate DNS over TLS using Cloudflare DNS?

This article describes how to configure FortiGate DNS over TLS using Cloudflare DNS.

  • Primary DNS
  • Secondary DNS


From GUI

When configuring from GUI, do not forget to change the default server hostname ‘’.

When using Cloudflare DNS, use ‘’ or ‘’ as the server hostname.

From CLI

# config system dns
set primary
set secondary
set protocol dot
set server-hostname ""

Note: Using an incorrect server hostname will result in DNS failure.

    Ads Blocker Image Powered by Code Help Pro

    Your Support Matters...

    We run an independent site that\'s committed to delivering valuable content, but it comes with its challenges. Many of our readers use ad blockers, causing our advertising revenue to decline. Unlike some websites, we haven\'t implemented paywalls to restrict access. Your support can make a significant difference. If you find this website useful and choose to support us, it would greatly secure our future. We appreciate your help. If you\'re currently using an ad blocker, please consider disabling it for our site. Thank you for your understanding and support.