Fortinet white logo
Fortinet white logo

CLI Reference

config system dns-server

config system dns-server

Configure DNS servers.

config system dns-server
    Description: Configure DNS servers.
    edit <name>
        set mode [recursive|non-recursive|...]
        set dnsfilter-profile {string}
        set doh [enable|disable]
        set doh3 [enable|disable]
        set doq [enable|disable]
    next
end

config system dns-server

Parameter

Description

Type

Size

Default

name

DNS server name.

string

Maximum length: 15

mode

DNS server mode.

option

-

recursive

Option

Description

recursive

Shadow DNS database and forward.

non-recursive

Public DNS database only.

forward-only

Forward only.

dnsfilter-profile

DNS filter profile.

string

Maximum length: 35

doh

Enable/disable DNS over HTTPS/443.

option

-

disable

Option

Description

enable

Enable DNS over HTTPS.

disable

Disable DNS over HTTPS.

doh3

Enable/disable DNS over QUIC/HTTP3/443.

option

-

disable

Option

Description

enable

Enable DNS over HTTP3/QUIC.

disable

Disable DNS over HTTP3/QUIC.

doq

Enable/disable DNS over QUIC/853.

option

-

disable

Option

Description

enable

Enable DNS over QUIC.

disable

Disable DNS over QUIC.

config system dns-server

config system dns-server

Configure DNS servers.

config system dns-server
    Description: Configure DNS servers.
    edit <name>
        set mode [recursive|non-recursive|...]
        set dnsfilter-profile {string}
        set doh [enable|disable]
        set doh3 [enable|disable]
        set doq [enable|disable]
    next
end

config system dns-server

Parameter

Description

Type

Size

Default

name

DNS server name.

string

Maximum length: 15

mode

DNS server mode.

option

-

recursive

Option

Description

recursive

Shadow DNS database and forward.

non-recursive

Public DNS database only.

forward-only

Forward only.

dnsfilter-profile

DNS filter profile.

string

Maximum length: 35

doh

Enable/disable DNS over HTTPS/443.

option

-

disable

Option

Description

enable

Enable DNS over HTTPS.

disable

Disable DNS over HTTPS.

doh3

Enable/disable DNS over QUIC/HTTP3/443.

option

-

disable

Option

Description

enable

Enable DNS over HTTP3/QUIC.

disable

Disable DNS over HTTP3/QUIC.

doq

Enable/disable DNS over QUIC/853.

option

-

disable

Option

Description

enable

Enable DNS over QUIC.

disable

Disable DNS over QUIC.