Ddns configuration example with peanuthull server, Network requirements, Configuration procedure – H3C Technologies H3C S5560 Series Switches User Manual
Page 127

112
# 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 services at whatever.3322.org.
DDNS configuration example with PeanutHull server
Network requirements
As shown in
, Switch uses domain name whatever.gicp.cn.
Switch acquires the IP address through DHCP. Through the PeanutHull server, Switch informs the DNS
server of the latest mapping between its domain name and IP address. The IP address of the DNS server
is 1.1.1.1. Switch uses the DNS server to translate www.oray.cn into the corresponding IP address.
Figure 48 Network diagram
Configuration procedure
Before configuring DDNS on Switch, perform the following tasks:
•
Register with username steven and password nevets at http://www.oray.cn/.
•
Add Switch's host name-to-IP address mapping to the DNS server.
•
Make sure the devices can reach each other.
# Create a DDNS policy named oray.cn and enter its view.
[Switch] ddns policy oray.cn
# Specify for DDNS update requests the URL address with the login ID steven and plaintext password
nevets.
[Switch-ddns-policy-oray.cn] url oray://phservice2.oray.net
[Switch-ddns-policy-oray.cn] username steven
[Switch-ddns-policy-oray.cn] password simple nevets