If your external IP address changes regularly and you have a static domain name, you can configure the external interface to use a dynamic DNS (DDNS) service. This ensures that external users and customers can always connect to your company firewall. If you have a FortiGuard subscription, you can use FortiGuard as the DDNS server.
You can configure FortiGuard as the DDNS server using the GUI or CLI.
In this example, FortiGuard DDNS is enabled and the DDNS server is set to float-zone.com. Other DDNS server options include fortiddns.com and fortidyndns.com.
To configure FortiGuard as the DDNS server in the GUI:
- Go to Network > DNS
- Enable FortiGuard DDNS.
- Select the Interface with the dynamic connection.
- Select the Server that you have an account with.
- Enter your Unique Location.
- Click Apply.
To configure FortiGuard as the DDNS server in the CLI:
config system ddns edit 1 set ddns-server FortiGuardDDNS set ddns-domain "branch.float-zone.com" set monitor-interface "wan1" next end
DDNS servers other than FortiGuard
If you do not have a FortiGuard subscription, or want to use a different DDNS server, you can configure a DDNS server for each interface. Only the first configure port appears in the GUI. The available commands vary depending on the selected DDNS server.
To configure DDNS servers other than FortiGuard in the CLI:
config system ddns edit <DDNS_ID> set monitor-interface <external_interface> set ddns-server <ddns_server_selection> ... next end
Refresh DDNS IP addresses
You can configure FortiGate to refresh DDNS IP addresses. FortiGate periodically checks the DDNS server that is configured.
To configure FortiGate to refresh DDNS IP addresses using the CLI:
config system ddns edit 1 set ddns-server FortiGuardDDNS set use-public-ip enable set update-interval seconds next end
clear-text is disabled, FortiGate uses the SSL connection to send and receive (DDNS) updates.
To disable cleartext and set the SSL certificate using the CLI:
config system ddns edit <1> set clear-text disable set ssl-certificate <cert_name> next end
DDNS update override
A DHCP server has an override command option that allows DHCP server communications to go through DDNS to perform updates for the DHCP client. This enforces a DDNS update of the A field every time even if the DHCP client does not request it. This allows support for the
deny client‑updates options.
To enable DDNS update override using the CLI:
config system dhcp server edit 1 set ddns-update enable set ddns-update_override enable set ddns-server-ip <ddns_server_ip> set ddns-zone <ddns_zone> next end
To debug DDNS:
# diagnose debug application ddnscd -1 # diagnose debug enable
To check if a DDNS server is available:
# diagnose test application ddnscd 3
FortiDDNS status: ddns_ip=0.0.0.0 ddns_port=443 svr_num=0 domain_num=0
FortiDDNS status: ddns_ip=126.96.36.199 ddns_port=443 svr_num=1 domain_num=3 svr= 188.8.131.52 domain= fortiddns.com domain= fortidyndns.com domain= float-zone.com