FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
ddeguzman
Staff
Staff
Article Id 346676
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, enable the DNS protocol "DNS (UDP/53)" and disable "TLS (TCP/853)." This configuration allows FortiGate to resolve hostnames without needing to specify the server hostname.

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