< Home

ddns apply policy

Function

The ddns apply policy command allows you to apply DDNS policies on interfaces.

The undo ddns apply policy command deletes the configuration.

By default, no DDNS policy is bound to an interface.

Format

ddns apply policy policy-name [ fqdn domain-name ]

undo ddns apply policy [ policy-name ]

Parameters

Parameter Description Value

policy-name

Specifies a DDNS policy name.

The value must be the name of an existing DDNS policy.

fqdn domain-name

Specifies domain name updated by the DDNS.

The value is a string of 1 to 128 case-sensitive characters without spaces.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

DNS provides static mappings between domain names and IP addresses. When IP addresses of interfaces change, DNS cannot dynamically update mappings. After the specified DDNS policy is applied on an interface, if the IP address of the interface changes, the DDNS policy updates mapping between the specified Fully Qualified Domain Name (FQDN) and the IP address.

If a DDNS policy with the same name is bound to an interface repeatedly and different FQDNs are specified, only the latest configuration takes effect and a DDNS update is initiated.

Prerequisites

To apply the policy on an interface, you need to create the DDNS policy first, also the DDNS policy, including DDNS Server domain-name, DDNS Client domain-name, username and password, must be completely configured.

Example

# Apply the DDNS policy "test "on the GigabitEthernet 0/0/1.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/1 
[sysname-GigabitEthernet0/0/1] ddns apply policy test 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >