This article describes the FortiGate alt-primary DNS server feature and its configuration.
FortiOS 7.0, 7.2, 7.4.
alt-primary and alt-secondary servers are configurable from the CLI.
config system dns
set alt-primary {ipv4-address}
set alt-secondary {ipv4-address}
end
Alt-dns servers are alternative DNS servers for FortiGate queries under a specific condition.
FortiGate queries the configured alt-dns servers when FortiGate's primary/secondary DNS server returns a name resolution error (NXDOMAIN) for a name query.
A common usage case for alt-dns servers is to resolve internal domain names that cannot be resolved by the public DNS servers.
Example Workflow:
config system dns
set primary 96.45.45.45
set secondary 96.45.46.46
set protocol dot
set server-hostname "globalsdns.fortinet.net"
set alt-primary 10.0.0.3
set alt-secondary 10.0.0.4
end
For alt-dns servers to be utilized, the following conditions must be met.
Domain Forwarding:
Technical Tip: DNS conditional forwarding.
The option 'set server-hostname' is not available when using the cleartext protocol.
FortiGate alt-dns query honors 'set server-select-method' configuration as well as 'protocol'.
config system dns
set server-select-method { least-rtt | failover }
set protocol {cleartext | dot | doh}
end
Related article:
Technical Tip: FortiGate DNS query preference when multiple DNS protocols are enabled.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.