Technical Note: How to configure multiple dynamic DNS servers using CLI
Description
Solution
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.
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
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
