< Home

Configuring a DDNS Policy

Context

You can specify the DDNS or DNS server to which update requests are sent when configuring the DDNS policy.

When the FW functioning as a DDNS client needs to update the mapping between domain names and IP addresses on the DNS server, the following update modes are supported:
  • DDNS update mode (defined by the RFC2136): The FW functioning as a 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 FW functioning as 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.

Procedure

  1. Run system-view

    The system view is displayed.

  2. 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 on the FW.

  3. Run method { ddns [ both ] | http | vendor-specific }

    The update mode is configured for the FW functioning as the DDNS client.

    By default, the update mode is vendor-specific for the FW functioning as the DDNS client
    • Configuring the update mode to ddns when hoping to select the DDNS update mode defined by the RFC2136
      1. Run name-server name-server

        The DNS server for receiving update messages from the DDNS client is configured.

        By default, no DNS server for receiving DDNS update messages is configured on the FW.

      2. (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.

    • Configuring the update mode to vendor-specific when hoping to make the FW communicate with the DDNS servers provided at www.3322.org, www.dyndns.org, and www.oray.cn or http when hoping to make the FW communicate with an HTTP-based common DDNS server
      1. 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.

        After the TCP login and registration of the FW to the DDNS server provided by www.oray.cn is completed. The FW needs to cut the TCP connection to enter the state of keeping heartbeat in a long term. The protocol of keeping heartbeat uses UDP port 6060. The FW must send the updated packets to the DDNS server every 60 seconds. If the DDNS server does not receive the update requests sent by the FW, it deletes all the domain named registered by the FW. During the period of keeping heartbeat, the FW will not regularly send the DDNS update packets to the DDNS server actively.

        The different modes of configuring URLs in which the FW 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 entries between the DDNS domain name and IP address, you are advised to upgrade the router to the latest version.
      2. (Optional) Run interval interval-time

        The interval for sending DDNS update requests after the DDNS update is enabled is set on the FW.

        After the interval for sending DDNS update requests is set in the configured DDNS policy, the device sends DDNS update requests at intervals. By default, the interval for sending DDNS update requests is 3600 seconds.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >