The name-server command configures a DNS server to receive update messages from a DDNS client when the device functions as the DDNS client and the update mode is DDNS.
The undo name-server command cancels the DNS server configured for receiving update messages from the DDNS client.
By default, no DNS server is configured to receive update messages from a DDNS client when the device functions as the DDNS client and the update mode is DDNS.
Parameter |
Description |
Value |
|---|---|---|
name-server |
Specifies the DNS server for receiving update messages from the DDNS client. |
The value is a string of 1 to 128 case-sensitive characters without spaces. The value can be a domain name or an IP address. |
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
The value is a string of 1 to 31 characters. The value must be the name of an existing VPN instance. |
Usage Scenario
When the device functions as a DDNS client and the update mode is DDNS, you can run the name-server command to configure a DNS server to receive update messages from the DDNS client. After receiving the update request packets, the DNS server updates the mapping between the domain name and IP address of the DDNS client.
Prerequisites
The update mode of the device functioning as a DDNS client has been set to DDNS using the method command.
# Configure the DNS server with the domain name ns.huawei.com to receive update messages from a DDNS client when the device functions as the DDNS client and the update mode is DDNS.
<sysname> system-view [sysname] ddns policy mypolicy [sysname-ddns-policy-mypolicy] method ddns [sysname-ddns-policy-mypolicy] name-server ns.huawei.com