Skip to main content
Contributor III
June 4, 2015

Technical Note: How to configure multiple dynamic DNS servers using CLI

  • June 4, 2015
  • 0 replies
  • 2575 views
Description
This article will explain the configuration of a dynamic DNS server on an interface from CLI.

The example shows how to add DDNS servers to two different interfaces, wan1 is having abc.com as domain and wan2 is having xyz.com as domain.  In the GUI, it is not possible to define different DDNS servers as it has only one option.

Solution
CLI:

config system ddns
    edit 1
        set ddns-server dyndns.org
        set ddns-domain "abc.com"
        set ddns-username "abc"
        set ddns-password ENC 7QdYBvGrYeAlMXXFaepEZRKzc0bOuXTpp
+rutXdJ8gkVkcUPcn20Mvlu78+FRgupRbaE8wiK0QN3Sf8knQwimEVIDP4IpDhSwUKiFjQY2lMpMGqSGltxbxA
+e6R6VIJtRy2v9UgYoZwvMw6TDbkeOBs7uG5NOSYGF/6Sw/KtJ6bucZKf9ggbug8yyjmCtJ3Ufu4ppA==
        set monitor-interface "wan1"
    next
    edit 2
        set ddns-server dyndns.org
        set ddns-domain "xyz.com"
        set ddns-username "abc"
        set ddns-password ENC CO2cemQO8WL+jf2MCB8W9vJnlrruDp8ixcvrlcN7a1Zb7Lr2dIlbcixTPYgsF3QrGrEp/V7S
+KbYNQjB7/amS67RKFAMWjBnw8oP4qh5Neh05VYbrBu//AdNaU60UspAtDbQqW6UZN6DspDRoW3ZCBjTld7vrPLAtkwyIGbj8I9QrVDZ5pIS5wL6cL2+bUFf3yL
Mqg==
        set monitor-interface "wan2"
    next
end

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!