Configuring a DDNS Policy
Context
You can specify the DDNS or DNS server to which update requests are sent when configuring the DDNS policy.
- DDNS update mode (defined by the RFC2136): The DDNS client dynamically updates the mapping between domain names and IP addresses on the DNS server. To configure this mode, run the method ddns [ both ] command.
- Update mode implemented through the DDNS server: The DDNS client sends the mapping between domain names and IP addresses to the DDNS server with a specified URL. The DDNS server then informs the DNS server to dynamically update the mapping between domain names and IP addresses.
- To use the Siemens DDNS server or DDNS servers provided at www.3322.org, www.dyndns.org, or www.oray.cn, run the method vendor-specific command.
- To use an HTTP-based common DDNS server, run the method http command.
Currently, the device supports to communicate with the following DDNS service providers: www.3322.org, checkip.dyndns.org, dynamic.zoneedit.com, ip1.dynupdate.no-ip.com and zoneedit.com no-ip.com.
Procedure
- Run system-view
The system view is displayed.
- Run ddns policy policy-name
A DDNS policy is created and the DDNS policy view is displayed.
By default, no DDNS policy is created in the system.
A maximum of 10 DDNS policies can be configured.
- Run method { ddns [ both ] | http | vendor-specific }
The update mode is configured for the device functioning as the DDNS client.
By default, the update mode is vendor-specific for the device functioning as the DDNS client.
- Configuring the update mode to ddns (DDNS update mode defined by the RFC2136)
Run name-server name-server [ vpn-instance vpn-instance-name ]
The DNS server for receiving update messages from the DDNS client is configured.
By default, no DNS server is configured for receiving update messages from the DDNS client.
(Optional) Run interval interval-time
The interval for sending DDNS update requests is set.
By default, the interval for sending DDNS update requests is 3600 seconds.
After the interval for sending DDNS update requests is set in the configured DDNS policy, the DDNS client sends DDNS update requests at intervals.
- (Optional) Run masklen mask-length
The mask length of the Zone field in PTR query record update packets is set.
By default, the mask length of the Zone field is 24 in PTR query record update packets.
This command is supported in V300R019C13 and later versions.
- Configuring the update mode to vendor-specific (communicating with the Siemens DDNS server and DDNS servers provided at www.3322.org, www.dyndns.org, and www.oray.cn) or http (communicating with an HTTP-based common DDNS server)
Run url request-url username username password password
The URL in DDNS update requests is specified.
After a DDNS policy is created, enter the URL and specify a DDNS server in the URL. The processes for the device to request DDNS updates from different DDNS servers are different; therefore, the URL configurations of DDNS servers are different.
The different modes of configuring URLs in which the Router sends requests for updating the DNS entries to different DDNS servers are shown as follows:
Sending Requests for Updates to the DDNS Server
Mode of Configuring the URL of the DDNS Server
Using HTTP to communicate with the DDNS server provided at www.3322.org
http://<username>:<password>@members.3322.org/dyndns/update?system=dyndns&hostname=<h>&myip=<a>
Using HTTP to communicate with the DDNS server provided at www.dyndns.org
http://<username>:<password>@update.dyndns.org/nic/update?hostname=<h>&myip=<a>
Using TCP to communicate with the DDNS server provided at www.oray.cn
oray://<username>:<password>@phddnsdev.oray.net
Using HTTP to communicate with a common DDNS server
http://<username>:<password>@{DDNS Server URL}
- <username> and <password> in a URL indicate the user name and password, which are in fixed formats, cannot be modified , and are automatically set to the user name and password specified in the url request-url username username password password command.
- <h> and <a> in a URL indicate the domain name and IP address, which are in fixed formats and cannot be modified. <a> is automatically set to the IP address of the source interface that the DDNS client uses to send DDNS update requests, and <h> is the FQDN to be updated.
- When the DDNS client communicates with a common DDNS server using HTTP, {DDNS Server URL} in a URL needs to be manually set. To obtain the URLs of DDNS servers provided by service providers, visit the official websites of service providers.
If the URL needs to include a question mark (?), enter the first part of double quotation marks (""), the URL including a question mark (?), and the last part of double quotation marks ("") in sequence. That is, the URL must be enclosed by double quotation marks ("").
- The DDNS service is provided by DDNS servers from different vendors. When the DDNS server URL changes or the DDNS server stops providing service, the device used as the DDNS client cannot exchange packets with the DDNS server. The DDNS function may not take effect. If you fail to update the mapping between domain names and IP addresses, you are advised to upgrade the device to the latest version.
Run url request-url [ username username password password ]
The URL in DDNS update requests is specified.
To ensure password security, you are advised to run the username username password password command to configure a user name and password. The password information in the configuration file is displayed in cipher text.
After a DDNS policy is created, enter the URL and specify a DDNS server in the URL. The processes for the device to request DDNS updates from different DDNS servers are different; therefore, the URL configurations of DDNS servers are different.
- If username username password password is not specified, the URL contains the user name and password, and their configurations are displayed in plain text.
- When the device uses HTTP to communicate with the DDNS server provided at www.3322.org, the URL in a DDNS update request is:
http://username:password@members.3322.org/dyndns/update?system=dyndns&hostname=<h>&myip=<a>
- When the device uses HTTP to communicate with the DDNS server provided at www.dyndns.org, the URL in a DDNS update request is:
http://username:password@update.dyndns.org/nic/update?hostname=<h>&myip=<a>
- When the device uses TCP to communicate with the DDNS server provided at www.oray.cn, the URL in a DDNS update request is:
oray://username:password@phddnsdev.oray.net
- When the device uses HTTPS to communicate with the Siemens DDNS server, the URL in a DDNS update request is user-defined, for example,
https://x.x.x.x/nic/update?group=med&user=huawei_test&password=12345&myip=192.168.19.2
During the configuration, replace x.x.x.x with the DDNS server IP address of Siemens.
- When the device uses HTTP to communicate with a common DDNS server, the URL in a DDNS update request is:
http://username:password@merri.s.dnaip.fi/reg/h=<h>&a=<a>
In the preceding URLs, username and password indicate the user name and password for logging in to the DDNS server. Set these parameters based on the registry information. For example, in http://huawei1:huawei2@merri.s.dnaip.fi/reg/h=<h>&a=<a>, huawei1 and huawei2 indicate the user name and password for logging in to the DDNS server.
- When the device uses HTTP to communicate with the DDNS server provided at www.3322.org, the URL in a DDNS update request is:
- If username username password password is specified, the URL only contains the fixed format <username>:<password>, not the user name and password. The user name and password are specified by username and password, and the password configuration is displayed in cipher text.
- When the device uses HTTP to communicate with the DDNS server provided at www.3322.org, the URL in a DDNS update request is:
http://<username>:<password>@members.3322.org/dyndns/update?system=dyndns&hostname=<h>&myip=<a>
- When the device uses HTTP to communicate with the DDNS server provided at www.dyndns.org, the URL in a DDNS update request is:
http://<username>:<password>@update.dyndns.org/nic/update?hostname=<h>&myip=<a>
- When the device uses TCP to communicate with the DDNS server provided at www.oray.cn, the URL in a DDNS update request is:
oray://<username>:<password>@phddnsdev.oray.net
- When the device uses HTTPS to communicate with the Siemens DDNS server, the URL in a DDNS update request is user-defined, for example,
https://x.x.x.x/nic/update?group=med&user=<username>&password=<password>&myip=192.168.19.2
During the configuration, replace x.x.x.x with the DDNS server IP address of Siemens.
- When the device uses HTTP to communicate with a common DDNS server, the URL in a DDNS update request is:
http://<username>:<password>@merri.s.dnaip.fi/reg/h=<h>&a=<a>
- To enter a question mark (?) in a URL, press Ctrl+T.
In the preceding URLs, <username> and <password> are fixed formats, which cannot be modified.
The DDNS service is provided by DDNS servers from different vendors. When the DDNS server URL changes or the DDNS server stops providing the service, the device used as the DDNS client cannot exchange packets with the DDNS server. As a result, the DDNS function may become unavailable. If you fail to update the mapping between domain names and IP addresses, you are advised to upgrade the device to the latest version.
- When the device uses HTTP to communicate with the DDNS server provided at www.3322.org, the URL in a DDNS update request is:
- If username username password password is not specified, the URL contains the user name and password, and their configurations are displayed in plain text.
(Optional) Run ssl-policy policy-name
The SSL policy is bound to the DDNS policy.
When the device functions as the DDNS client and communicates with the Siemens DDNS server, the device needs to encrypt packets using SSL. An SSL policy needs to be bound to the Siemens DDNS policy. To configure an SSL policy, see "SSL Configuration" in the Huawei AR Series V300R019 Configuration Guide - Security.
(Optional) Run interval interval-time
The interval for sending DDNS update requests is set.
After the interval for sending DDNS update requests is set in the configured DDNS policy, the DDNS client sends DDNS update requests at intervals. By default, the interval for sending DDNS update requests is 3600 seconds.
- Configuring the update mode to ddns (DDNS update mode defined by the RFC2136)