config system ddnsedit 1set ddns-server FortiGuardDDNSset ddns-domain "fg.fortiddns.com"set use-public-ip enableset monitor-interface "wan1"nextend
or in gui
dns > have option to enable use public ip
config system ddnsedit 1set ddns-server FortiGuardDDNSset ddns-domain "fg.fortiddns.com"set use-public-ip enableset monitor-interface "wan1"nextend