Skip to main content
ddeguzman
Staff
Staff
October 3, 2024

Troubleshooting Tip: Using Cloudflare DNS with DNS over TLS showing as unreachable

  • October 3, 2024
  • 0 replies
  • 6192 views
Description This article explains the behavior when utilizing Cloudflare DNS as FortiGate's DNS server.
Scope FortiGate.
Solution

When utilizing a third-party DNS server such as CloudFlare (1.1.1.1 & 1.0.0.1) in FortiGate and selecting TLS as the DNS Protocol, it will show as 'Unreachable'. As a result, FortiGate will not be able to resolve the hostname.

 

DNS-Cloudflare-error.JPG

 

This is due to the server hostname mismatched with the DNS server IPs selected. To resolve this, it is needed to update the 'Server Hostname' under the DNS configuration.

 

DNS-Cloudflare.JPG

 
To configure via CLI:

 

config system dns

    set primary 1.1.1.1
    set secondary 1.0.0.1
    set protocol dot
    set server-hostname "one.one.one.one"

end

 

Alternatively, if utilizing TLS is not a requirement, then it is possible to enable the DNS protocol 'DNS (UDP/53)' and disable 'TLS (TCP/853)' instead. This configuration allows FortiGate to resolve hostnames without needing to specify the server hostname.
 

image - 2024-10-03T123006.671.png

 

Related articles:

Troubleshooting Tip: Google DNS with DNS over TLS showing as unreachable

Technical Tip: DNS server is unreachable when using custom DNS
Technical Tip: DNS over TLS (DoT) with 3rd Party Global DNS (Google DNS)

Technical Tip: Enable DNS over TLS with Google DNS servers