105
Configuration prerequisites
Visit the website of a DDNS service provider, register an account, and apply for a domain name for the
DDNS client. When the DDNS client updates the mapping between the domain name and the IP address
through the DDNS server, the DDNS server checks whether the account information is correct and
whether the domain name to be updated belongs to the account.
Configuration procedure
To configure a DDNS policy:
Step Command Remarks
1. Enter system view.
system-view N/A
2. Create a DDNS policy and enter
its view.
ddns policy
policy-name
By default, no DDNS policy is created.
3. Specify a URL address for DDNS
update requests.
url request-url
By default, no URL address is specified for
DDNS update requests.
4. Specify the username to be
contained in the URL address.
username username By default, no username is specified.
5. Specify the password to be
contained in the URL address.
password { cipher |
simple } password
By default, no password is specified.
6. (Optional.) Specify the parameter
transmission method for sending
DDNS update requests to
HTTP/HTTPS-based DDNS
servers.
method { http-get |
http-post }
By default, http-get is used.
Use the method http-post command to
specify the POST method for DDNS update
with a DHS server.
7. (Optional.) Associate an SSL client
policy with the DDNS policy.
ssl-client-policy
policy-name
By default, no SSL client policy is
associated with the DDNS policy.
This step is only effective and a must for
HTTP-based DDNS update requests. For
SSL client policy configuration, see
Security Configuration Guide.
8. (Optional.) Specify the interval for
sending update requests.
interval days [ hours
[ minutes ] ]
By default, the time interval is one hour.
Applying the DDNS policy to an interface
After you apply the DDNS policy to an interface and specify the FQDN for update, the DDNS client
sends requests to the DDNS server to update the mapping between the domain name and the primary
IP address of the interface at the specified interval.
Before you apply a DDNS policy to an interface, complete the following tasks:
• Specify the primary IP address of the interface and make sure the DDNS server and the interface
can reach each other.
• Configure static or dynamic domain name resolution to translate the domain name of the DDNS
server into the IPv4 address. For more information, see "Configuring the IPv4 DNS client."