system dns
Use this command to configure the DNS servers that the FortiMail system will query.
FortiMail systems require DNS servers for many features such as resolving fully qualified domain names (FQDN) into IP addresses, MX lookups, PTR lookups (reverse-dns-type {ldap-query | regexp | wildcard} and forged-ip-check {any | fail | pass}), FortiGuard connectivity, DKIM sender authentication, and more.
|
|
For improved FortiMail performance, use DNS servers on your local network. |
Syntax
config system dns
set primary {<dns1_ipv4> | <dns1_ipv6>}
set secondary {<dns2_ipv4> | <dns2_ipv6>}
set protected-domain-dns-state {enable | disable}
set protected-domain-dns-servers {{<dns_ipv4> | <dns_ipv6>} ...}
set cache-min-ttl <seconds_int>
set ptr-query-option {enable | disable | public-ip-only}
set truncate-handling {disable | tcp-retry}
end
|
Variable |
Description |
Default |
||||
|
Enable to cache DNS query results to improve performance. Disable the DNS cache to free memory if the FortiMail system has high RAM usage. |
enable |
|||||
|
Enter the time-to-live (TTL) until expiry of cached DNS records. Whether the TTL is applied to existing cache depends on the length of the existing TTL:
|
300 |
|||||
|
Enter the IP address of the primary DNS server.
|
0.0.0.0 |
|||||
|
protected-domain-dns-servers {{<dns_ipv4> | <dns_ipv6>} ...} |
Enter the IP address of a DNS server that you want to use to resolve protected domain and sub-domain names and the |
0.0.0.0 |
||||
|
Enable or disable DNS servers that are specifically used for protected domains and their sub-domains. This is useful if the protected domains’ This setting applies only if operating in gateway mode and transparent mode, and if
|
disable |
|||||
|
Enable to perform reverse DNS lookups on both private network IP addresses and public IP addresses.
|
public-ip-only |
|||||
|
Enter the IP address of the secondary DNS server.
|
0.0.0.0 |
|||||
|
Select how to handle truncated UDP replies of DNS queries, either:
|
tcp-retry |