Skip to main content
navellano
Staff
Staff
Sep 26, 2022 4:00 AM UTC

Technical Tip: DNS over HTTPS/443 configuration

  • Sep 21, 2026 9:34 AM UTC
  • 1 reply
  • 9670 views
  • Translate All

Description

This article describes the basic configurations for enabling DNS over HTTPS/443 (DoH) for local-out DNS queries.

Scope

FortiOS firmware 7.0 onwards.

Solution

New option is added to DNS Profile, forcing DNS over HTTPS/443 for added security.

DNS over HTTPS (DoH) provides a method of performing DNS resolution over a secure HTTPS connection.

The goal of the protocol is to increase user privacy, performance and security by preventing eavesdropping and manipulation of DNS data via man-in-the-middle attacks.

Before enabling DoH, verify that the configured DNS servers support DNS over HTTPS. If the upstream server does not support DoH, the server may drop the DNS packets.

This can appear as high latency, unreachable DNS server status or failed name resolution.

To enable DoH DNS from the GUI:

  1. Go to Network -> DNS.

  2. Enter the primary and secondary DNS server addresses.

  3. In the DNS Protocols section, enable HTTPS (TCP/443).

 

navellano_0-1664100694288.png

 

  1. Configure the other settings as needed.

  2. Select 'Apply'.


To enable DoH DNS from the CLI:

config system dns
    set primary 192.168.148.6
    set secondary 96.45.46.46
    set protocol doh
end 


To enable DoH on the DNS server from the GUI:

  1. Go to Network -> DNS Servers.

  2. In the DNS Service on Interface section, edit an existing interface, or create a new one.

  3. Select a Mode, then DNS Filter profile.

  4. Enable DNS over HTTPS.

 

navellano_1-1664100694290.png

 

  1. Select 'OK'.

 

To enable DoH on the DNS server from CLI:

config system dns-server
    edit "port2"
        set doh enable
    next
end 


FortiGuard DNS servers (96.45.45.45 and 96.45.46.46) support DNS over TLS/HTTPS protocol.

Note: When enabling DNS over HTTPS under DNS Service, make sure the GUI access (HTTPS) port is not 443. Otherwise, there will be a conflict as DNS over HTTPS also uses port 443. To check which port is being used for GUI access, run the command below: 

show full | grep admin-sport 


Related document:

DNS over TLS and HTTPS - FortiGate administration guide

    1 reply

    janonuevo
    Staff
    Staff
    Oct 18, 2022 11:00 PM UTC

    This is very informative and helpful. Kudos to the Author!

    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024