DDNS configuration example with www.3322.org

Network requirements

As shown in Figure 45, Switch is a Web server with the domain name whatever.3322.org.

Switch acquires the IP address through DHCP. Through DDNS service provided by www.3322.org, Switch informs the DNS server of the latest mapping between its domain name and IP address. Switch uses the DNS server to translate www.3322.org into the corresponding IP address.

Figure 45: Network diagram

Configuration procedure

Before configuring DDNS on Switch, do the following:

# Create a DDNS policy named 3322.org, and enter its view.

<Switch> system-view
[Switch] ddns policy 3322.org

# Specify for DDNS update requests the URL address with the login ID steven and plaintext password nevets.

[Switch-ddns-policy-3322.org] url http://members.3322.org/dyndns/update?system=dyndns&hostname=<h>&myip=<a>
[Switch-ddns-policy-3322.org] username steven
[Switch-ddns-policy-3322.org] password simple nevets

# Set the interval for sending DDNS update requests to 15 minutes.

[Switch-ddns-policy-3322.org] interval 0 0 15
[Switch-ddns-policy-3322.org] quit

# Specify the IP address of the DNS server as 1.1.1.1.

[Switch] dns server 1.1.1.1

# Apply DDNS policy 3322.org to VLAN-interface 2 to enable DDNS update and dynamically update the mapping between domain name whatever.3322.org and the primary IP address of VLAN-interface 2.

[Switch] interface vlan-interface 2
[Switch-Vlan-interface2] ddns apply policy 3322.org fqdn whatever.3322.org

After the preceding configuration is completed, Switch notifies the DNS server of its new domain name-to-IP address mapping through the DDNS server provided by www.3322.org, whenever the IP address of Switch changes. Therefore, Switch can always provide Web service at whatever.3322.org.