Technical Tip: How to configure a third-party Dynamic DNS (DDNS) service on the FortiGate
Description
Â
This article describes how to configure a third-party Dynamic DNS (DDNS) service on the FortiGate. This article assumes that the reader has both an active contract with a DDNS service provider and the credentials/information required to configure a DDNS client like the FortiGate.
Â
Scope
Â
FortiGate, DDNS.
Â
Solution
Â
First, refer to the following Community KB article that describes how to configure the FortiGate with the included FortiGuard DDNS service: Technical Tip: How to configure Dynamic DNS (DDNS) on the FortiGate.
Â
As per the linked Community KB article, the assumption is that the FortiGate will be configured to use Fortinet's own FortiDDNS service (since this is the only option available when configuring via the GUI). However, the FortiGate does include support for a number of third-party DDNS providers, though the configuration must be performed via the CLI.
Â
The following is a list of currently supported DDNS providers as checked on FortiOS v8.0.1:
dyndns.org: members.dyndns.org and dnsalias.com.
dyns.net: www.dyns.net.
tzo.com: rh.tzo.com.
vavic.com: Peanut Hull.
dipdns.net: dipdnsserver.dipdns.com.
now.net.cn: ip.todayisp.com.
dhs.org: members.dhs.org.
easydns.com: members.easydns.com.
genericDDNS: Generic DDNS based on RFC2136.
FortiGuardDDNS: FortiGuard DDNS service.
noip.com: dynupdate.no-ip.com.
Â
To configure third-party DDNS in the FortiGate CLI, navigate to config system ddns and create entries using the following options:
Â
config system ddns
edit <id>
set ddns-server <provider_name>
set ddns-domain <hostname>
set ddns-username <username>
set ddns-password <password>
set update-interval <60-2592000, default = 0>
set clear-text <disable | enable>
set ssl-certificate <certificate_name>
set monitor interface <interface_1> <interface_2> <...>
next
endÂ
FortiGate # config system ddns
FortiGate (ddns) # edit 1
new entry '1' added
FortiGate (1) # set ?
*ddns-server Select a DDNS service provider.
ddns-domain Your fully qualified domain name. For example, yourname.ddns.com.
ddns-username DDNS user name.
ddns-password DDNS password.
use-public-ip Enable/disable use of public IP address.
update-interval DDNS update interval (60 - 2592000 sec, 0 means default).
clear-text Enable/disable use of clear text connections.
ssl-certificate Name of local certificate for SSL connections.
*monitor-interface Monitored interface.
Â
Important configuration notes:
By default, the FortiGate will register the interface IP address of the monitor-interface to the DDNS provider. If this is a private IP address (e.g., the FortiGate is behind another NAT router), then DDNS may not function correctly since Internet users will resolve the DDNS FQDN to a generally unreachable private address.
The use-public-ip option resolves this by having the FortiGate query an external server to learn what its associated public IP is before registering that public address to the DDNS hostname. However, only the FortiGuardDDNS and noip.com providers support this option (use-public-ip will be unavailable when a different provider is specified with the ddns-server setting).The update-interval setting is used to specify how frequently (in seconds) the FortiGate should periodically refresh the DDNS hostname entry. The default setting of 0 means that the interval is assigned by the DDNS server; otherwise, the setting can be overridden by the administrator. This can be useful in cases where the FortiGate is behind NAT and cannot necessarily know if/when its external public IP has been changed.
Refer to the DDNS provider's documentation regarding the appropriate ddns-domain, ddns-username, and ddns-password settings to set on the FortiGate for their service.
Â
Related documents:
