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.
kcheng
Staff
Staff
Article Id 247599
Description This article describes the troubleshooting steps and the command that can be used to troubleshoot Google DNS with DNS over TLS showing as unreachable.
Scope FortiGate 6.2.0 and above.
Solution

DNS over TLS is introduced in FortiOS 6.2.0 and above:

DNS over TLS

 

  1. When Google DNS is configured with DoT protocol, the server reachability is showing as Unreachable:

 

kcheng_6-1677630958738.png

 

  1. Attempt to resolve any domain via FortiGate would fail:

     

    kcheng_7-1677630958738.png

     

     

  2. It is possible to dump the DNS setting by issuing the command below:

     

    diag test app dnsproxy 3

     

    kcheng_8-1677630958742.png

     

     

  3. To resolve this issue, it is necessary to change the 'Server hostname' parameter in the DNS configuration:

     

    kcheng_9-1677630958744.png

     

    CLI configuration:

     

    config system dns

        set primary 8.8.8.8

        set secondary 8.8.4.4

        set protocol dot

        set server-hostname "dns.google"

    end

     

     

  4. Post changing the server hostname to the Google DNS hostname, DNS resolution would be working as expected:

     

    kcheng_10-1677630958747.png

     

     

  5. Dump the DNS setting again and it is now possible to see no failure:

     

 

kcheng_11-1677630958751.png

 

 

Related article:

Troubleshooting Tip: Using Cloudflare DNS with DNS over TLS showing as unreachable
Technical Tip: DNS over TLS (DoT) with 3rd Party Global DNS (Google DNS)