< Home

method (DDNS policy view)

Function

The method command sets the update mode for the device functioning as a DDNS client.

The undo method command restores the default update mode for the device functioning as a DDNS client.

By default, the update mode is vendor-specific for the device functioning as the DDNS client.

Format

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

undo method

Parameters

Parameter

Description

Value

ddns [ both ]

Indicates that the update mode is ddns (defined by the RFC2136) for the device functioning as a DDNS client.

If both is specified, both Class-A and PTR query records are updated. If both is not specified, only Class-A query records are updated

  • Class-A query records: mapping between domain names and IP addresses provided by the DNS server for Class-A query. In Class-A query, an IP address is obtained based on a domain name.
  • PTR query records: mapping between domain names and IP addresses provided by the DNS server for PTR query. In PTR query, a domain name is obtained using an IP address.

-

http

Indicates that the update mode is http for the device functioning as a DDNS client. After this parameter is specified, the DDNS client can communicate with a common DDNS server through HTTP.

-

vendor-specific

Indicates that the update mode is vendor-specific for the device functioning as a DDNS client. After this parameter is specified, the DDNS client can communicate with the DDNS servers provided at www.3322.org, www.dyndns.org, and www.oray.cn.

-

Views

DDNS policy view

Default Level

2: Configuration level

Usage Guidelines

When the device 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 DDNS client dynamically updates the mapping between domain names and IP addresses on the DNS server. To configure this mode, specify the ddns parameter.
  • 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 configure this mode, specify the http or vendor-specific parameter.
    • To use the Siemens DDNS server or DDNS server provided at www.3322.org, www.dyndns.org, or www.oray.cn, specify the vendor-specific parameter.
    • To use an HTTP-based common DDNS server, specify the http parameter.

Security risks exist if the update mode for the device functioning as a DDNS client is set to http or vendor-specific. It is recommended that you set the update mode to ddns.

Example

# Set the update mode of the device functioning as the DDNS client to DDNS, and update Class-A and PTR query records.

<sysname> system-view
[sysname] ddns policy mypolicy
[sysname-ddns-policy-mypolicy] method ddns both

# Restore the default update mode for the device functioning as the DDNS client.

<sysname> system-view
[sysname] ddns policy mypolicy
[sysname-ddns-policy-mypolicy] undo method
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >