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.
rtichkule
Staff
Staff
Article Id 367312
Description This article describes the behavior when using Quad9 DNS as FortiGate's DNS server.
Scope FortiGate.
Solution

When using a Quad9 DNS server (9.9.9.9) in FortiGate and selecting TLS as the DNS Protocol, it will display 'Unreachable'. As a result, FortiGate will be unable to resolve the hostname. The setting is located under Network -> DNS 

 

image (25).png

 

This is because the server hostname does not match the DNS server IP addresses that were selected.

The server hostname parameter allows the FortiGate to verify the server hostname.

The server hostname matches the domain name of the remote DNS server's certificate in the Subject or SAN. 

 

To resolve the issue, add the server hostname of the DNS server: dns9.quad9.net is the hostname for the Quad9 server.

 

image (26).png

 

Steps for CLI:

 

config system dns

    set primary 9.9.9.9

    set protocol dot

    set server-hostname "dns9.quad9.net"

end

 

cli.png

 

Alternatively, if utilizing TLS is not a requirement, 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. 

 

Screenshot 2024-12-31 152429.png

 

Related articles:
Technical Tip: FortiGate Troubleshooting DNS commands

Technical Tip: DNS server on FortiGate caused FortiGate DNS latency

Technical Tip: DNS troubleshooting

Technical Tip: DNS stops working when using custom DNS

Technical Tip: FortiGate DNS Server works as DNS proxy

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
Technical Tip: Different options of configuring DNS server on FortiGate

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

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

Troubleshooting Tip: Domain Name ServDNS not responding